1 instantiation of MarshalString
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
55
var m = new
MarshalString
();
107 references to MarshalString
PresentationFramework (107)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (33)
337
MarshalString
__language = default;
341
__language =
MarshalString
.CreateMarshaler(language);
342
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr,
MarshalString
.GetAbi(__language), out __retval));
347
MarshalString
.DisposeMarshaler(__language);
480
value =
MarshalString
.FromManaged(__value);
551
return
MarshalString
.FromAbi(__retval);
555
MarshalString
.DisposeAbi(__retval);
1202
value =
MarshalString
.FromManaged(__value);
1262
return
MarshalString
.FromAbi(__retval);
1266
MarshalString
.DisposeAbi(__retval);
1315
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokenAt(
MarshalString
.FromAbi(text), startIndex);
1334
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokens(
MarshalString
.FromAbi(text));
1351
global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).Tokenize(
MarshalString
.FromAbi(text), startIndex, global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.WordSegmentsTokenizingHandler.FromAbi(handler));
1370
value =
MarshalString
.FromManaged(__value);
1397
MarshalString
__text = default;
1401
__text =
MarshalString
.CreateMarshaler(text);
1402
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokenAt_1(ThisPtr,
MarshalString
.GetAbi(__text), startIndex, out __retval));
1407
MarshalString
.DisposeMarshaler(__text);
1414
MarshalString
__text = default;
1418
__text =
MarshalString
.CreateMarshaler(text);
1419
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokens_2(ThisPtr,
MarshalString
.GetAbi(__text), out __retval));
1424
MarshalString
.DisposeMarshaler(__text);
1431
MarshalString
__text = default;
1435
__text =
MarshalString
.CreateMarshaler(text);
1437
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.Tokenize_3(ThisPtr,
MarshalString
.GetAbi(__text), startIndex, WordSegmentsTokenizingHandler.GetAbi(__handler)));
1441
MarshalString
.DisposeMarshaler(__text);
1454
return
MarshalString
.FromAbi(__retval);
1458
MarshalString
.DisposeAbi(__retval);
1503
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenterFactory>(thisPtr).CreateWithLanguage(
MarshalString
.FromAbi(language));
1531
MarshalString
__language = default;
1535
__language =
MarshalString
.CreateMarshaler(language);
1536
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr,
MarshalString
.GetAbi(__language), out __retval));
1541
MarshalString
.DisposeMarshaler(__language);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (39)
89
MarshalString
__languageTag = default;
93
__languageTag =
MarshalString
.CreateMarshaler(languageTag);
94
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr,
MarshalString
.GetAbi(__languageTag), out __retval));
99
MarshalString
.DisposeMarshaler(__languageTag);
255
value =
MarshalString
.FromManaged(__value);
274
value =
MarshalString
.FromManaged(__value);
293
value =
MarshalString
.FromManaged(__value);
312
value =
MarshalString
.FromManaged(__value);
345
return
MarshalString
.FromAbi(__retval);
349
MarshalString
.DisposeAbi(__retval);
362
return
MarshalString
.FromAbi(__retval);
366
MarshalString
.DisposeAbi(__retval);
379
return
MarshalString
.FromAbi(__retval);
383
MarshalString
.DisposeAbi(__retval);
396
return
MarshalString
.FromAbi(__retval);
400
MarshalString
.DisposeAbi(__retval);
512
__value = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageExtensionSubtags>(thisPtr).GetExtensionSubtags(
MarshalString
.FromAbi(singleton));
540
MarshalString
__singleton = default;
544
__singleton =
MarshalString
.CreateMarshaler(singleton);
545
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetExtensionSubtags_0(ThisPtr,
MarshalString
.GetAbi(__singleton), out __retval));
550
MarshalString
.DisposeMarshaler(__singleton);
593
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageFactory>(thisPtr).CreateLanguage(
MarshalString
.FromAbi(languageTag));
621
MarshalString
__languageTag = default;
625
__languageTag =
MarshalString
.CreateMarshaler(languageTag);
626
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr,
MarshalString
.GetAbi(__languageTag), out __retval));
631
MarshalString
.DisposeMarshaler(__languageTag);
676
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics>(thisPtr).IsWellFormed(
MarshalString
.FromAbi(languageTag));
696
value =
MarshalString
.FromManaged(__value);
723
MarshalString
__languageTag = default;
727
__languageTag =
MarshalString
.CreateMarshaler(languageTag);
728
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsWellFormed_0(ThisPtr,
MarshalString
.GetAbi(__languageTag), out __retval));
733
MarshalString
.DisposeMarshaler(__languageTag);
745
return
MarshalString
.FromAbi(__retval);
749
MarshalString
.DisposeAbi(__retval);
792
__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics2>(thisPtr).TrySetInputMethodLanguageTag(
MarshalString
.FromAbi(languageTag));
820
MarshalString
__languageTag = default;
824
__languageTag =
MarshalString
.CreateMarshaler(languageTag);
825
global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.TrySetInputMethodLanguageTag_0(ThisPtr,
MarshalString
.GetAbi(__languageTag), out __retval));
830
MarshalString
.DisposeMarshaler(__languageTag);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (6)
167
var
hstrRuntimeClassId =
MarshalString
.CreateMarshaler(runtimeClassId);
168
int hr = _GetActivationFactory(
MarshalString
.GetAbi(hstrRuntimeClassId), out instancePtr);
225
var
hstrRuntimeClassId =
MarshalString
.CreateMarshaler(runtimeClassId);
226
int hr = Platform.RoGetActivationFactory(
MarshalString
.GetAbi(hstrRuntimeClassId), ref iid, &instancePtr);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (1)
74
className =
MarshalString
.FromManaged(runtimeClassName);
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (28)
51
public static unsafe
MarshalString
CreateMarshaler(string value)
55
var
m = new MarshalString();
74
public static IntPtr GetAbi(
MarshalString
m) => m is null ? IntPtr.Zero : m._handle;
76
public static IntPtr GetAbi(object box) => box is null ? IntPtr.Zero : ((
MarshalString
)box)._handle;
78
public static void DisposeMarshaler(
MarshalString
m) => m?.Dispose();
83
DisposeMarshaler(((
MarshalString
)box));
125
foreach (
var
marshaler in _marshalers)
137
public
MarshalString
[] _marshalers;
152
m._marshalers = new
MarshalString
[length];
156
m._marshalers[i] =
MarshalString
.CreateMarshaler(array[i]);
157
elements[i] =
MarshalString
.GetAbi(m._marshalers[i]);
185
array[i] =
MarshalString
.FromAbi(data[i]);
196
array[i] =
MarshalString
.FromAbi(data[i]);
222
elements[i] =
MarshalString
.FromManaged(array[i]);
248
elements[i] =
MarshalString
.FromManaged(array[i]);
1003
CreateMarshaler = (T value) =>
MarshalString
.CreateMarshaler((string)(object)value);
1004
GetAbi = (object box) =>
MarshalString
.GetAbi(box);
1005
FromAbi = (object value) => (T)(object)
MarshalString
.FromAbi((IntPtr)value);
1006
FromManaged = (T value) =>
MarshalString
.FromManaged((string)(object)value);
1007
DisposeMarshaler = (object box) =>
MarshalString
.DisposeMarshaler(box);
1008
DisposeAbi = (object box) =>
MarshalString
.DisposeAbi(box);
1009
CreateMarshalerArray = (T[] array) =>
MarshalString
.CreateMarshalerArray((string[])(object)array);
1010
GetAbiArray = (object box) =>
MarshalString
.GetAbiArray(box);
1011
FromAbiArray = (object box) => (T[])(object)
MarshalString
.FromAbiArray(box);
1012
FromManagedArray = (T[] array) =>
MarshalString
.FromManagedArray((string[])(object)array);
1013
CopyManagedArray = (T[] array, IntPtr data) =>
MarshalString
.CopyManagedArray((string[])(object)array, data);
1014
DisposeMarshalerArray = (object box) =>
MarshalString
.DisposeMarshalerArray(box);
1015
DisposeAbiArray = (object box) =>
MarshalString
.DisposeAbiArray(box);