public int ReadBytes(int count) { DiagnosticUtility.DebugAssert(count >= 0, ""); int offset = _offset; if (offset > _offsetMax - count) EnsureBytes(count); _offset += count; return offset; }