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

Method WriteUInt32

csharp/src/Fory/ByteBuffer.cs:81–96  ·  view source on GitHub ↗
(uint value)

Source from the content-addressed store, hash-verified

79 }
80
81 [MethodImpl(MethodImplOptions.AggressiveInlining)]
82 public void WriteUInt32(uint value)
83 {
84 EnsureCapacity(4);
85 int index = _count;
86 if (BitConverter.IsLittleEndian)
87 {
88 Unsafe.WriteUnaligned(ref _storage[index], value);
89 }
90 else
91 {
92 BinaryPrimitives.WriteUInt32LittleEndian(_storage.AsSpan(index, 4), value);
93 }
94
95 _count = index + 4;
96 }
97
98 [MethodImpl(MethodImplOptions.AggressiveInlining)]
99 public void WriteInt32(int value)

Callers 6

WriteTimestampMethod · 0.80
WriteDataMethod · 0.80
TryWriteKnownPayloadMethod · 0.80
WriteTypedPayloadMethod · 0.80

Calls

no outgoing calls

Tested by 2