class
#include <Jazz2/Compatibility/JJ2Block.h>
JJ2Block Processes compressed or uncompressed blocks from original files.
Constructors, destructors, conversion operators
-
JJ2Block(std::
unique_ptr<Stream>& s, std:: int32_t length, std:: int32_t uncompressedLength = 0)
Public functions
-
void SeekTo(std::
int32_t offset) -
void DiscardBytes(std::
int32_t length) - auto ReadBool() -> bool
-
auto ReadByte() -> std::
uint8_t -
auto ReadInt16() -> std::
int16_t -
auto ReadUInt16() -> std::
uint16_t -
auto ReadInt32() -> std::
int32_t -
auto ReadUInt32() -> std::
uint32_t -
auto ReadUint7bitEncoded() -> std::
int32_t - auto ReadFloat() -> float
- auto ReadFloatEncoded() -> float
-
void ReadRawBytes(std::
uint8_t* dst, std:: int32_t length) -
auto ReadString(std::
int32_t length, bool trimToNull) -> StringView - auto ReachedEndOfStream() -> bool
-
auto GetLength() -> std::
int32_t