Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/FNetBitStreamReader
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 reads may be performed on this stream until the substream has been committed or discarded.
The returned FNetBitStreamReader will have similar behavior to a newly constructed regular FNetBitStreamWriter.
| Name | CreateSubstream |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Serialization/NetBitStreamReader.h |
| Include Path | #include "Iris/Serialization/NetBitStreamReader.h" |
| Source | /Engine/Source/Runtime/Net/Iris/Private/Iris/Serialization/NetBitStreamReader.cpp |
FNetBitStreamReader CreateSubstream
(
uint32 MaxBitCount
)
Parameters
| Name | Remarks |
|---|---|
| MaxBitCount | The maximum allowed bits that may be read. The value will be clamped to the number of bits left in this stream/substream. If it's a requirement a specific size is supported you can verify it with GetBitsLeft(). |