SetaPDF_Core_Reader_Binary Class representing a binary reader

File: /SetaPDF v2/Core/Reader/Binary.php

Class hierarchy

Summary

Constants

BYTE_ORDER_BIG_ENDIAN

public const string SetaPDF_Core_Reader_Binary::BYTE_ORDER_BIG_ENDIAN = 'bigEndian'

Big endian byte order

BYTE_ORDER_LITTLE_ENDIAN

public const string SetaPDF_Core_Reader_Binary::BYTE_ORDER_LITTLE_ENDIAN = 'littleEndian'

Little endian byte order


Properties

$_reader


Methods

__construct()

cleanUp()

public SetaPDF_Core_Reader_Binary::cleanUp (
void
): void

Release resources/cycled references.

getReader()

Get the reader.

readByte()

public SetaPDF_Core_Reader_Binary::readByte (
[ $pos = null ]
):

Read a single byte.

Parameters
$pos
 

readBytes()

public SetaPDF_Core_Reader_Binary::readBytes (
$length [, $pos = null ]
):

Read a specific amount of bytes.

Parameters
$length
 
$pos
 

readInt16()

Reads a 16-bit signed integer.

Parameters
$pos
 
$byteOrder
 

readInt32()

Reads a 32-bit signed integer.

Parameters
$pos
 
$byteOrder
 

readInt8()

public SetaPDF_Core_Reader_Binary::readInt8 (
[ $pos = null ]
):

Reads a 8-bit/1-byte signed integer.

Parameters
$pos
 

readUInt16()

Reads a 16-bit unsigned integer.

Parameters
$pos
 
$byteOrder
 

readUInt32()

Reads a 32-bit unsigned integer.

Parameters
$pos
 
$byteOrder
 

readUInt8()

public SetaPDF_Core_Reader_Binary::readUInt8 (
[ $pos = null ]
):

Reads a 8-bit/1-byte unsigned integer.

Parameters
$pos
 

reset()

public SetaPDF_Core_Reader_Binary::reset (
$position, $length
): void

Reset the reader to a specific position.

Parameters
$position
 
$length
 

seek()

public SetaPDF_Core_Reader_Binary::seek (
$position
): void

Seek to a position.

Parameters
$position
 

skip()

public SetaPDF_Core_Reader_Binary::skip (
$length
): void

Skip a specific byte count.

Parameters
$length