# Interface ICefReadHandler

Description
Hierarchy
Methods

## Unit

uCEFInterfaces

## Declaration

`type ICefReadHandler = interface(ICefBaseRefCounted)`

## Description

Structure the client can implement to provide a custom stream reader. The functions of this structure may be called on any thread.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_stream_capi.h">CEF source file: /include/capi/cef_stream_capi.h (cef_read_handler_tcef_stream_reader_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefReadHandler

## Overview

### Methods

Public | `function Read(ptr: Pointer; size, n: NativeUInt): NativeUInt;`
Public | `function Seek(offset: Int64; whence: Integer): Integer;`
Public | `function Tell: Int64;`
Public | `function Eof: Boolean;`
Public | `function MayBlock: Boolean;`

## Description

### Methods

Public | `function Read(ptr: Pointer; size, n: NativeUInt): NativeUInt;`
Read raw binary data. ###### Attributes GUID['{10152506-B2F8-4765-BBBC-9CA8A85A2C87}']

Public | `function Seek(offset: Int64; whence: Integer): Integer;`
Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on failure.

Public | `function Tell: Int64;`
Return the current offset position.

Public | `function Eof: Boolean;`
Return non-zero if at end of file.

Public | `function MayBlock: Boolean;`
Return true (1) if this handler performs work like accessing the file system which may block. Used as a hint for determining the thread to access the handler from.

Generated by PasDoc 1.0.4.