protected void Reset(byte[] buf, int off, int length, bool readingsize) { Buffer = buf; Offset = off; Length = length; CurrentOffset = off; RemainingLength = length; ReadingSize = readingsize; }