Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: int Read(byte[], int, int)

  • Declared in: RT.KitchenSink.Streams.ControlCodedStream
  • Overrides: Stream.Read(byte[], int, int)

Declaration

public override int Read(
    byte[] buffer,
    int offset,
    int count
)

Summary

Reads up to count bytes into the buffer from the underlying stream. If a control code is encountered before any data has been read, will throw an InvalidOperationException. If some data has already been read upon encountering a control code, will stop and return all the data read up to the control code.

Returns

The number of bytes actually read. Returns zero if the stream was ended when the read started, or if count was zero.