SourceStream.Read C# (CSharp) Method

Read() public method

public Read ( byte buf, int offset, int count ) : int
buf byte
offset int
count int
return int
	public override int Read (byte [] buf, int offset, int count)
	{
		int n = 0;
		
		for (int i = 0; i < count; i++){
			int c = ReadByte ();
			if (c == -1)
				return n;
			buf [offset + n] = (byte) c;
			n++;
		}
		return n;
	}

Usage Example

Beispiel #1
0
        public override int Read(byte[] buffer, int offset, int count)
        {
            int bytesRead = SourceStream.Read(buffer, offset, count);

            ProcessData(buffer, offset, bytesRead);
            return(bytesRead);
        }
All Usage Examples Of SourceStream::Read