Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization
Inheritance Hierarchy
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/BitWriter.h |
| Include | #include "Serialization/BitWriter.h" |
Syntax
struct FBitWriter : public FBitArchive
Remarks
Writes bitstreams.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FBitWriter () |
Default constructor. Zeros everything. | ||
FBitWriter
(
const FBitWriter& |
|||
FBitWriter
(
FBitWriter&& |
|||
FBitWriter
(
int64 InMaxBits, |
Constructor using known size the buffer needs to be |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FBitWriter () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowAppend
(
int64 LengthBits |
||
| void | CountMemory
(
FArchive& Ar |
Counts the in-memory bytes used by this object | |
| const TArray< uint8 > * | GetBuffer () |
||
| const uint8 * | GetData () |
||
| uint8 * | GetData () |
Returns a pointer to our internal buffer. | |
| int64 | GetMaxBits () |
Returns the number of bits the buffer supports. | |
| int64 | GetNumBits () |
Returns the number of bits written. | |
| int64 | GetNumBytes () |
Returns the number of bytes written. | |
| void | SetAllowOverflow
(
bool bInAllow |
Sets whether or not this writer intentionally allows overflows (to avoid logspam) | |
| void | SetAllowResize
(
bool NewResize |
||
| void | SetOverflowed
(
int32 LengthBits |
Marks this bit writer as overflowed. | |
| void | WriteAlign () |
||
| void | |||
| void | WriteIntWrapped
(
uint32 Value, |
Serializes the specified Value, but does not bounds check against ValueMax; instead, it will wrap around if the value exceeds ValueMax (this differs from SerializeInt, which clamps) |
Overridden from FBitArchive
| Type | Name | Description | |
|---|---|---|---|
| void | SerializeBitsWithOffset
(
void* Src, |
Overridden from FArchive
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | SerializeBits
(
void* Src, |
||
| void | SerializeInt
(
uint32& Value, |
Serializes a compressed integer - Value must be < Max | |
| void | SerializeIntPacked
(
uint32& Value |
This function is bit compatible with FArchive::SerializeIntPacked. |
Overridden from FArchiveState
| Type | Name | Description | |
|---|---|---|---|
| void | Reset () |
Resets the bit writer back to its initial state |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FBitWriter & | operator=
(
FBitWriter&& |
||
| FBitWriter & | operator=
(
const FBitWriter& |