Ejemplo n.º 1
0
 public unsafe void Combine(byte[] bytes)
 {
     fixed(byte *bytesPtr = bytes)
     {
         using (UnsafeRawBufferPointer rawBytes = new UnsafeRawBufferPointer((IntPtr)bytesPtr, bytes.Length)) {
             Combine(rawBytes);
         }
     }
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }