Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b44f64

Browse files
BillHallydsyme
authored andcommitted
Add support for UnmanagedType.LPUTF8Str (dotnet#4360)
1 parente1e4cce commit2b44f64

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

‎src/absil/il.fs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ type ILNativeType =
11301130
| LPSTR
11311131
| LPWSTR
11321132
| LPTSTR
1133+
| LPUTF8STR
11331134
| ByValStr
11341135
| TBSTR
11351136
| LPSTRUCT

‎src/absil/il.fsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ type ILNativeType =
757757
| LPSTR
758758
| LPWSTR
759759
| LPTSTR
760+
| LPUTF8STR
760761
| ByValStr
761762
| TBSTR
762763
| LPSTRUCT

‎src/absil/ilbinary.fs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ let nt_ARRAY = 0x2Auy
838838
letnt_LPSTRUCT=0x2Buy
839839
letnt_CUSTOMMARSHALER=0x2Cuy
840840
letnt_ERROR=0x2Duy
841+
letnt_LPUTF8STR=0x30uy
841842
letnt_MAX=0x50uy
842843

843844
// From c:/clrenv.i386/Crt/Inc/i386/hs.h
@@ -894,6 +895,7 @@ let ILNativeTypeMap =
894895
nt_LPSTR, ILNativeType.LPSTR
895896
nt_LPWSTR, ILNativeType.LPWSTR
896897
nt_LPTSTR, ILNativeType.LPTSTR
898+
nt_LPUTF8STR, ILNativeType.LPUTF8STR
897899
nt_IUNKNOWN,(* COM interop*) ILNativeType.IUnknown
898900
nt_IDISPATCH,(* COM interop*) ILNativeType.IDispatch
899901
nt_BYVALSTR, ILNativeType.ByValStr

‎src/fsharp/IlxGen.fs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4933,7 +4933,8 @@ and GenMarshal cenv attribs =
49334933
error(Error(FSComp.SR.ilCustomMarshallersCannotBeUsedInFSharp(),m))
49344934
(* ILNativeType.Custom of bytes * string * string * bytes(* GUID,nativeTypeName,custMarshallerName,cookieString*)*)
49354935
//ILNativeType.Error
4936-
|0x2D-> ILNativeType.Error
4936+
|0x2D-> ILNativeType.Error
4937+
|0x30-> ILNativeType.LPUTF8STR
49374938
|_-> ILNativeType.Empty
49384939
Some(decodeUnmanagedType unmanagedType), otherAttribs
49394940
| Some(Attrib(_,_,_,_,_,_,m))->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp