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

Method WriteVarInt32

csharp/src/Fory/ByteBuffer.cs:286–291  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

284 }
285
286 [MethodImpl(MethodImplOptions.AggressiveInlining)]
287 public void WriteVarInt32(int value)
288 {
289 uint zigzag = unchecked((uint)((value << 1) ^ (value >> 31)));
290 WriteVarUInt32(zigzag);
291 }
292
293 [MethodImpl(MethodImplOptions.AggressiveInlining)]
294 public void WriteVarInt64(long value)

Callers 13

WriteMethod · 0.80
WriteDataMethod · 0.80
WriteMethod · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
TryWriteKnownPayloadMethod · 0.80
WriteTypedPayloadMethod · 0.80
WriteDataMethod · 0.80
VarInt32RoundTripMethod · 0.80
WriteDataMethod · 0.80
CaseBufferVarMethod · 0.80

Calls

no outgoing calls

Tested by 6

WriteDataMethod · 0.64
VarInt32RoundTripMethod · 0.64
WriteDataMethod · 0.64
CaseBufferVarMethod · 0.64
WriteDataMethod · 0.64