public unsafe void WriteObject(BinSerializer bs) { long hv = TxnPtr.ToInt64(); var span = new Span <byte>(&hv, 8); bs.Stream.Write(span); bs.Write(IsAbort); }
public unsafe void WriteObject(BinSerializer bs) { bs.Write(TxnPtr.ToInt64()); bs.Write(WaitHandle.ToInt64()); bs.Write(PartitionInfo.Flags); bs.Write(PartitionInfo.KeySize.ToInt32()); var span = new ReadOnlySpan <byte>(PartitionInfo.KeyPtr.ToPointer(), PartitionInfo.KeySize.ToInt32()); bs.Stream.Write(span); }