MCPcopy Create free account
hub / github.com/apache/fory / WriteUInt64

Method WriteUInt64

csharp/src/Fory/ByteBuffer.cs:104–119  ·  view source on GitHub ↗
(ulong value)

Source from the content-addressed store, hash-verified

102 }
103
104 [MethodImpl(MethodImplOptions.AggressiveInlining)]
105 public void WriteUInt64(ulong value)
106 {
107 EnsureCapacity(8);
108 int index = _count;
109 if (BitConverter.IsLittleEndian)
110 {
111 Unsafe.WriteUnaligned(ref _storage[index], value);
112 }
113 else
114 {
115 BinaryPrimitives.WriteUInt64LittleEndian(_storage.AsSpan(index, 8), value);
116 }
117
118 _count = index + 8;
119 }
120
121 [MethodImpl(MethodImplOptions.AggressiveInlining)]
122 public void WriteInt64(long value)

Callers 6

WriteDataMethod · 0.80
EncodeMethod · 0.80
TryWriteKnownPayloadMethod · 0.80
WriteTypedPayloadMethod · 0.80

Calls

no outgoing calls