(uint value)
| 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) |
no outgoing calls