public unsafe UnsafeMutableRawBufferPointer(IntPtr start, nint count) { if (start == IntPtr.Zero) throw new ArgumentNullException(nameof(start)); fixed(byte *thisDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { IntPtr thisPtr = new IntPtr(thisDataPtr); NativeMethodsForUnsafeMutableRawBufferPointer.PI_UnsafeMutableRawBufferPointer(thisPtr, start, count); } }
public unsafe byte this [int index] { get { fixed(byte *thisSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { return(NativeMethodsForUnsafeMutableRawBufferPointer.PImethod_getAt((IntPtr)thisSwiftDataPtr, index)); } } set { fixed(byte *thisSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { NativeMethodsForUnsafeMutableRawBufferPointer.PImethod_setAt((IntPtr)thisSwiftDataPtr, index, value); } } }
public static SwiftMetatype GetSwiftMetatype() { return(NativeMethodsForUnsafeMutableRawBufferPointer.PIMetadataAccessor_UnsafeMutableRawBufferPointer(SwiftMetadataRequest.Complete)); }