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

Method WriteTaggedInt64

csharp/src/Fory/ByteBuffer.cs:300–311  ·  view source on GitHub ↗
(long value)

Source from the content-addressed store, hash-verified

298 }
299
300 [MethodImpl(MethodImplOptions.AggressiveInlining)]
301 public void WriteTaggedInt64(long value)
302 {
303 if (value >= -1_073_741_824L && value <= 1_073_741_823L)
304 {
305 WriteInt32(unchecked((int)value << 1));
306 return;
307 }
308
309 WriteUInt8(0x01);
310 WriteInt64(value);
311 }
312
313 [MethodImpl(MethodImplOptions.AggressiveInlining)]
314 public void WriteTaggedUInt64(ulong value)

Callers 2

WriteTypedPayloadMethod · 0.45
AssertTaggedInt64Method · 0.45

Calls

no outgoing calls

Tested by 1

AssertTaggedInt64Method · 0.36