Skip to content
Amethyst documentation
AmethystAPI
Examples
Getting Started
Reverse Engineering
Toggle navigation menu
⌘
K
Amethyst documentation
/
AmethystAPI
/
File list
/
File BinaryStream.hpp
File BinaryStream.hpp
¶
class
ReadOnlyBinaryStream
¶
Subclassed by
BinaryStream
Public Functions
virtual
~ReadOnlyBinaryStream
(
)
¶
virtual
Bedrock
::
Result
<
void
,
std
::
error_code
>
read
(
void
*
target
,
uint64_t
num
)
¶
template
<
typename
T
>
Bedrock
::
Result
<
T
>
get
(
)
¶
Bedrock
::
Result
<
uint32_t
>
getUnsignedVarInt32
(
)
¶
Bedrock
::
Result
<
int32_t
>
getSignedVarInt32
(
)
¶
Private Members
size_t
mReadPointer
¶
bool
mHasOverflowed
¶
const
std
::
string
mOwnedBuffer
¶
const
std
::
string
&
mBuffer
¶
class
BinaryStream
:
public
ReadOnlyBinaryStream
¶
Public Functions
template
<
typename
T
>
void
write
(
T
in
)
¶
void
writeUnsignedVarInt32
(
uint32_t
value
)
¶
void
writeSignedVarInt32
(
int32_t
value
)
¶
Private Members
std
::
string
mOwnedBuffer
¶
std
::
string
&
mBuffer
¶