fix: Fixes serializing float (#1375)
This commit is contained in:
parent
127ca5e51e
commit
6daf536c28
1 changed files with 2 additions and 2 deletions
|
|
@ -255,12 +255,12 @@ public class BufferWriter : IGenericWriter
|
|||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public unsafe void Write(float value)
|
||||
public void Write(float value)
|
||||
{
|
||||
FlushIfNeeded(4);
|
||||
|
||||
BinaryPrimitives.WriteSingleLittleEndian(_buffer.AsSpan((int)_index), value);
|
||||
Index += 8;
|
||||
Index += 4;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue