NetDataWriterPutEnumT Method |
Writes an enum value of type T to the internal data buffer at the current position.
Automatically resizes the buffer if _autoResize is enabled.
Advances the position by the size of T.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic void PutEnum<T>(
T value
)
where T : struct, new(), Enum
Parameters
- value T
- The enum value to write.
Type Parameters
- T
- An unmanaged enum type to write.
See Also