Sproto.SprotoStream.Read C# (CSharp) Méthode

Read() public méthode

public Read ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void
		public void Read(byte[] buffer, int offset, int count) {
			for (int i = 0; i < count; i++) {
				buffer[offset+i] = this.buffer[this.pos++];
			}
		}

Usage Example

Exemple #1
0
        private byte[] DecodeBinary(SprotoStream reader)
        {
            int size = (int)this.ReadUInt32(reader);

            byte[] bytes = new byte[size];
            reader.Read(bytes, 0, size);
            return(bytes);
        }
All Usage Examples Of Sproto.SprotoStream::Read