mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Fix stream not clearing the proper values.
This commit is contained in:
parent
5f90d55fc7
commit
f5e766ab7b
@ -2217,13 +2217,13 @@ struct LgStream {
|
|||||||
static constexpr size_t MAX_SIZE = 4096;
|
static constexpr size_t MAX_SIZE = 4096;
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
static void ClearOutput() {
|
static void ClearOutput() {
|
||||||
m_InputStreamSize = m_InputStreamPosition = 0;
|
|
||||||
m_InputStreamError = false;
|
|
||||||
}
|
|
||||||
static void ClearInput() {
|
|
||||||
m_OutputStreamPosition = m_OutputStreamEnd = 0;
|
m_OutputStreamPosition = m_OutputStreamEnd = 0;
|
||||||
m_OutputStreamError = false;
|
m_OutputStreamError = false;
|
||||||
}
|
}
|
||||||
|
static void ClearInput() {
|
||||||
|
m_InputStreamSize = m_InputStreamPosition = 0;
|
||||||
|
m_InputStreamError = false;
|
||||||
|
}
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
static void StartWrite() { ClearOutput(); }
|
static void StartWrite() { ClearOutput(); }
|
||||||
static void SetWritePosition(size_t position) {
|
static void SetWritePosition(size_t position) {
|
||||||
|
Loading…
Reference in New Issue
Block a user