public async Task <byte> ReadByteAhead() { var byteRead = await _byteReader.ReadByteAsync(); _bufferBytes.Add(byteRead); return(byteRead); }
private async Task<string> ReadOneId(IByteStreamReader reader) { var valueBuilder = new StringBuilder(); var nextByte = await reader.ReadByteAsync(); while (nextByte != (byte)SpecialByte.RightAngledBracket) { valueBuilder.Append(Convert.ToChar(nextByte)); nextByte = await reader.ReadByteAsync(); } return valueBuilder.ToString(); }
private async Task <string> ReadOneId(IByteStreamReader reader) { var valueBuilder = new StringBuilder(); var nextByte = await reader.ReadByteAsync(); while (nextByte != (byte)SpecialByte.RightAngledBracket) { valueBuilder.Append(Convert.ToChar(nextByte)); nextByte = await reader.ReadByteAsync(); } return(valueBuilder.ToString()); }
internal async Task ReadComment(IByteStreamReader reader) { var nextByte = await reader.ReadByteAsync(); while (nextByte != (byte)SpecialByte.RightParernthesis) { if (nextByte == (byte)SpecialByte.BackSlash) { nextByte = await reader.ReadByteAsync(); } else { if (nextByte == (byte)SpecialByte.LeftParenthesis) { await ReadComment(reader); } } nextByte = await reader.ReadByteAsync(); } }