public void Read(byte[] buffer, int offset, int count) { for (int i = 0; i < count; i++) { buffer[offset+i] = this.buffer[this.pos++]; } }
private byte[] DecodeBinary(SprotoStream reader) { int size = (int)this.ReadUInt32(reader); byte[] bytes = new byte[size]; reader.Read(bytes, 0, size); return(bytes); }