Class FixedSysStringMarshalDescriptor
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents a description of a marshaller that marshals a given value to a fixed-length string using the system defined string encoding.
public class FixedSysStringMarshalDescriptor : MarshalDescriptor
- Inheritance
-
FixedSysStringMarshalDescriptor
- Inherited Members
Constructors
FixedSysStringMarshalDescriptor(int)
Creates a new instance of the FixedSysStringMarshalDescriptor class.
public FixedSysStringMarshalDescriptor(int size)
Parameters
size
intThe number of characters in the string.
Properties
NativeType
Gets the native type of the marshal descriptor. This is the byte any descriptor starts with.
public override NativeType NativeType { get; }
Property Value
Size
Gets or sets the number of characters in the string.
public int Size { get; set; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Reads a single fixed system string marshal descriptor from the provided input stream.
public static FixedSysStringMarshalDescriptor FromReader(ref BinaryStreamReader reader)
Parameters
reader
BinaryStreamReaderThe input stream.
Returns
- FixedSysStringMarshalDescriptor
The descriptor.
WriteContents(in BlobSerializationContext)
Serializes the blob (without extra data) to an output stream.
protected override void WriteContents(in BlobSerializationContext context)
Parameters
context
BlobSerializationContext