From 4a16bb3e9ebefc1f2971713fbfc69a58d8f08c7e Mon Sep 17 00:00:00 2001 From: Crsky Date: Sun, 15 Sep 2024 02:32:24 +0800 Subject: [PATCH] Update BinaryStream.cs --- GameRes/BinaryStream.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GameRes/BinaryStream.cs b/GameRes/BinaryStream.cs index 54bd39d7..026d82bc 100644 --- a/GameRes/BinaryStream.cs +++ b/GameRes/BinaryStream.cs @@ -170,14 +170,14 @@ namespace GameRes return bin; } - internal int FindEoS(int start, int length, Encoding enc) + internal int FindEoS (int start, int length, Encoding enc) { int eos_pos = -1; if (enc.IsUtf16()) { - for (int i = start + 1; i < start + length; i += 2) + for (int i = start+1; i < start+length; i += 2) { - if (m_buffer[i - 1] == 0 && m_buffer[i] == 0) + if (m_buffer[i-1] == 0 && m_buffer[i] == 0) { eos_pos = i - 1; break; @@ -186,7 +186,7 @@ namespace GameRes } else { - eos_pos = Array.IndexOf(m_buffer, 0, start, length); + eos_pos = Array.IndexOf (m_buffer, 0, start, length); } return eos_pos; }