Ultimate Replay Scripting Reference
BitConverterNonAlloc Class |
Custom implmenetation of the BitConverter class that does not make any allocations.
This is important as the methods may be called thousands of times per second.

Namespace: UltimateReplay.Util
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)

C#
public static class BitConverterNonAlloc
The BitConverterNonAlloc type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | GetBool |
Retreive a 8-bit bool from the specified byte array.
|
![]() ![]() | GetBytes(Byte, Boolean) |
Store an 8-bit bool into the specified byte array.
|
![]() ![]() | GetBytes(Byte, Int16) |
Store a 16 bit int into the specified byte array.
The buffer to store the int which must have a size of 2 or greaterThe short value to store |
![]() ![]() | GetBytes(Byte, Int32) |
Store a 32-bit int into the specified byte array.
|
![]() ![]() | GetBytes(Byte, Single) |
Store a 32-bit float into the specified byte array.
|
![]() ![]() | GetFloat |
Retreive a 32-bit float from the specified byte array.
|
![]() ![]() | GetInt |
Retreive a 32-bit int from the specified byte array.
|
![]() ![]() | GetShort |
Retreive a 16-bit int from the specified byte array.
|
