Delegate SourceCustom.ReadDelegate
A read delegate.
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public delegate int ReadDelegate(byte[] buffer, int length);
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | An array of bytes. |
System.Int32 | length | The maximum number of bytes to be read. |
Returns
Type | Description |
---|---|
System.Int32 | The total number of bytes read into the buffer. |
Remarks
The interface is exactly as System.IO.Stream.Read(System.Byte[],System.Int32,System.Int32). The handler is given a number of bytes to fetch, and should return a bytes-like object containing up to that number of bytes. If there is no more data available, it should return langword_csharp_0.