mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 07:38:16 +08:00
(BinaryStream): swapped ReadInt8 and ReadUInt8.
This commit is contained in:
parent
59f560be14
commit
611f7d712a
@ -232,14 +232,14 @@ namespace GameRes
|
|||||||
|
|
||||||
public sbyte ReadInt8 ()
|
public sbyte ReadInt8 ()
|
||||||
{
|
{
|
||||||
if (1 != FillBuffer (1))
|
return (sbyte)ReadUInt8();
|
||||||
throw new EndOfStreamException();
|
|
||||||
return (sbyte)m_buffer[m_buffer_pos++];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte ReadUInt8 ()
|
public byte ReadUInt8 ()
|
||||||
{
|
{
|
||||||
return (byte)ReadInt8();
|
if (1 != FillBuffer (1))
|
||||||
|
throw new EndOfStreamException();
|
||||||
|
return m_buffer[m_buffer_pos++];
|
||||||
}
|
}
|
||||||
|
|
||||||
public short ReadInt16 ()
|
public short ReadInt16 ()
|
||||||
@ -516,14 +516,14 @@ namespace GameRes
|
|||||||
|
|
||||||
public sbyte ReadInt8 ()
|
public sbyte ReadInt8 ()
|
||||||
{
|
{
|
||||||
if (m_position >= m_length)
|
return (sbyte)ReadInt8();
|
||||||
throw new EndOfStreamException();
|
|
||||||
return (sbyte)m_source[m_start+m_position++];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte ReadUInt8 ()
|
public byte ReadUInt8 ()
|
||||||
{
|
{
|
||||||
return (byte)ReadInt8();
|
if (m_position >= m_length)
|
||||||
|
throw new EndOfStreamException();
|
||||||
|
return m_source[m_start+m_position++];
|
||||||
}
|
}
|
||||||
|
|
||||||
public short ReadInt16 ()
|
public short ReadInt16 ()
|
||||||
|
Loading…
Reference in New Issue
Block a user