Show / Hide Table of Contents

Delegate SourceCustom.ReadDelegate

A read delegate.

Namespace: NetVips
Assembly: NetVips.dll
Syntax
public delegate int SourceCustom.ReadDelegate(byte[] buffer, int length)
Parameters
Type Name Description
byte[] buffer

An array of bytes.

int length

The maximum number of bytes to be read.

Returns
Type Description
int

The total number of bytes read into the buffer.

Remarks

The interface is exactly as Read(byte[], int, int). 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 0.

In this article
Back to top Generated by DocFX