Struct GhostComponentSerializer
Mostly for internal use. A collection helper functions used by code-gen and some runtime systems.
See Ghost
Inherited Members
Namespace: Unity.NetCode .LowLevel .Unsafe
Assembly: solution.dll
Syntax
public struct GhostComponentSerializer
Methods
Name | Description |
---|---|
Change |
Compute the number of bytes necessary to encode the required number of bits |
Change |
Compute the number of uint necessary to encode the required number of bits |
Convert |
Helper method to construct an Unsafe |
Copy |
Extract from the source buffer an unsigned integer, representing a portion of a bitmask starting from the given offset and number of bits. |
Copy |
For internal use only, copy the |
Int |
Return a pointer to the memory address for the given |
Size |
Helper that returns the size in bytes (aligned to 16 bytes boundary) used to store the component data inside Snapshot |
Snapshot |
Align the give size to 16 byte boundary. |
Snapshot |
Align the give size to 16 byte boundary |
Type |
Helper method to get a reference to a struct data from its address in memory. |