public unsafe void Combine(byte[] bytes) { fixed(byte *bytesPtr = bytes) { using (UnsafeRawBufferPointer rawBytes = new UnsafeRawBufferPointer((IntPtr)bytesPtr, bytes.Length)) { Combine(rawBytes); } } }
public unsafe void Combine(UnsafeRawBufferPointer bytes) { fixed(byte *thisSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { fixed(byte *bytesSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(bytes)) { NativeMethodsForSwiftHasher.PI_hasherCombine((IntPtr)thisSwiftDataPtr, (IntPtr)bytesSwiftDataPtr); } } }