From c6a143e9cb5e55770167dce154ecc2596b4b71cf Mon Sep 17 00:00:00 2001 From: svenskithesource <40274381+Svenskithesource@users.noreply.github.com> Date: Sun, 1 Jan 2023 16:26:44 +0100 Subject: [PATCH] delimeter -> delimiter --- src/AsmResolver/IO/BinaryStreamReader.cs | 42 ++++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/AsmResolver/IO/BinaryStreamReader.cs b/src/AsmResolver/IO/BinaryStreamReader.cs index 9a924cda9..869896f83 100644 --- a/src/AsmResolver/IO/BinaryStreamReader.cs +++ b/src/AsmResolver/IO/BinaryStreamReader.cs @@ -350,54 +350,54 @@ public byte[] ReadToEnd() } /// - /// Reads bytes from the input stream until the provided delimeter byte is reached. + /// Reads bytes from the input stream until the provided delimiter byte is reached. /// - /// The delimeter byte to stop at. - /// The read bytes, including the delimeter if it was found. - public byte[] ReadBytesUntil(byte delimeter) => ReadBytesUntil(delimeter, true); + /// The delimiter byte to stop at. + /// The read bytes, including the delimiter if it was found. + public byte[] ReadBytesUntil(byte delimiter) => ReadBytesUntil(delimiter, true); /// - /// Reads bytes from the input stream until the provided delimeter byte is reached. + /// Reads bytes from the input stream until the provided delimiter byte is reached. /// - /// The delimeter byte to stop at. - /// - /// true if the final delimeter should be included in the return value, false otherwise. + /// The delimiter byte to stop at. + /// + /// true if the final delimiter should be included in the return value, false otherwise. /// /// The read bytes. /// - /// This function always consumes the delimeter from the input stream if it is present, regardless of the value - /// of . + /// This function always consumes the delimiter from the input stream if it is present, regardless of the value + /// of . /// - public byte[] ReadBytesUntil(byte delimeter, bool includeDelimeterInReturn) + public byte[] ReadBytesUntil(byte delimiter, bool includeDelimiterInReturn) { var lookahead = Fork(); - bool hasConsumedDelimeter = lookahead.AdvanceUntil(delimeter, includeDelimeterInReturn); + bool hasConsumedDelimiter = lookahead.AdvanceUntil(delimiter, includeDelimiterInReturn); byte[] buffer = new byte[lookahead.RelativeOffset - RelativeOffset]; ReadBytes(buffer, 0, buffer.Length); - if (hasConsumedDelimeter) + if (hasConsumedDelimiter) ReadByte(); return buffer; } /// - /// Advances the reader until the provided delimeter byte is reached. + /// Advances the reader until the provided delimiter byte is reached. /// - /// The delimeter byte to stop at. - /// - /// true if the final delimeter should be consumed if available, false otherwise. + /// The delimiter byte to stop at. + /// + /// true if the final delimiter should be consumed if available, false otherwise. /// - /// true if the delimeter byte was found and consumed, false otherwise. - public bool AdvanceUntil(byte delimeter, bool consumeDelimeter) + /// true if the delimiter byte was found and consumed, false otherwise. + public bool AdvanceUntil(byte delimiter, bool consumeDelimiter) { while (RelativeOffset < Length) { byte b = ReadByte(); - if (b == delimeter) + if (b == delimiter) { - if (!consumeDelimeter) + if (!consumeDelimiter) { RelativeOffset--; return true;