mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Remove ReadChar8
This commit is contained in:
parent
64323cb675
commit
d628c6b5c3
@ -57,8 +57,7 @@ namespace csharp {
|
|||||||
return InternalReadByte() != 0;
|
return InternalReadByte() != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual char ReadChar();
|
virtual char ReadChar(bool twoBytesPerChar = false);
|
||||||
virtual char ReadChar8();
|
|
||||||
|
|
||||||
virtual int16_t ReadInt16() {
|
virtual int16_t ReadInt16() {
|
||||||
return ReadNumeric<int16_t>();
|
return ReadNumeric<int16_t>();
|
||||||
|
@ -82,8 +82,8 @@ namespace csharp {
|
|||||||
return static_cast<uint8_t>(b);
|
return static_cast<uint8_t>(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
char BinaryReader::ReadChar() {
|
char BinaryReader::ReadChar(bool twoBytes = false) {
|
||||||
const auto value = Read();
|
const auto value = Read(twoBytes);
|
||||||
|
|
||||||
if (value == -1)
|
if (value == -1)
|
||||||
{
|
{
|
||||||
@ -91,18 +91,7 @@ namespace csharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return static_cast<char>(value);
|
return static_cast<char>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
char BinaryReader::ReadChar8() {
|
|
||||||
const auto value = Read(true);
|
|
||||||
|
|
||||||
if (value == -1)
|
|
||||||
{
|
|
||||||
throw EndOfStreamException(SR::IO_EOF_ReadBeyondEOF);
|
|
||||||
}
|
|
||||||
|
|
||||||
return static_cast<char>(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
void BinaryReader::InternalRead(std::vector<uint8_t>& buffer) {
|
void BinaryReader::InternalRead(std::vector<uint8_t>& buffer) {
|
||||||
if (_disposed)
|
if (_disposed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user