Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/Serialization > API/Runtime/IrisCore/Iris/Serialization/FNetBitStreamWriter
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/Serialization/NetBitStreamWriter.h |
| Include | #include "Iris/Serialization/NetBitStreamWriter.h" |
| Source | /Engine/Source/Runtime/Experimental/Iris/Core/Private/Iris/Serialization/NetBitStreamWriter.cpp |
FNetBitStreamWriter CreateSubstream
&40;
uint32 MaxBitCount
&41;
Remarks
Creates a substream at the current bit position. The substream must be committed or discarded. Only one active substream at a time is allowed, but a substream can have an active substream as well. Once the substream has been commited or discarded a new substream may be created. No writes may be performed to this stream until the substream has been committed or discarded. Any write to a substream that occurs before overflow can modify the stream buffer contents regardless of whether the stream is committed or discarded.
The returned BitStreamWriter will have similar behavior to a newly constructed regular FNetBitStreamWriter. A BitStreamWriter that can be written to just like a regular BitStreamWriter.
Parameters
| Name | Description |
|---|---|
| MaxBitCount | The maximum allowed bits that may be written. The value will be clamped to the number of bits left in this stream/substream. |