Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/FNetBitStreamWriter
Description
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.
| Name | CreateSubstream |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Serialization/NetBitStreamWriter.h |
| Include Path | #include "Iris/Serialization/NetBitStreamWriter.h" |
| Source | /Engine/Source/Runtime/Net/Iris/Private/Iris/Serialization/NetBitStreamWriter.cpp |
FNetBitStreamWriter CreateSubstream
(
uint32 MaxBitCount
)
A BitStreamWriter that can be written to just like a regular BitStreamWriter.
Parameters
| Name | Remarks |
|---|---|
| MaxBitCount | The maximum allowed bits that may be written. The value will be clamped to the number of bits left in this stream/substream. |