Class FastBitConverter
Inheritance
object
FastBitConverter
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib.dll
Syntax
public static class FastBitConverter
Methods
GetBytes<T>(byte[], int, T)
Converts a value of type T into a byte array starting at the specified index.
Declaration
public static void GetBytes<T>(byte[] bytes, int startIndex, T value) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | The destination byte array. |
| int | startIndex | The zero-based index in |
| T | value | The value to be converted and written. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value to convert. Must be an unmanaged/blittable type. |
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException | Thrown when the |