SetaPDF_Core_Writer_Binary A class representing a binary writer

File: /SetaPDF/Core/Writer/Binary.php

Class hierarchy

Summary

Constants

BYTE_ORDER_BIG_ENDIAN

Big endian byte order

BYTE_ORDER_LITTLE_ENDIAN

Little endian byte order


Properties

$_writer


Methods

__construct()

cleanUp()

public void SetaPDF_Core_Writer_Binary::cleanUp ( void )

Release resources/cycled references.

getWiter()

writeBytes()

public void SetaPDF_Core_Writer_Binary::writeBytes ( string $bytes )

Writes various bytes.

Parameters
$bytes : string
 

writeInt16()

public self SetaPDF_Core_Writer_Binary::writeInt16 ( integer $int [, string $byteOrder = self::BYTE_ORDER_BIG_ENDIAN ] )

Writes a 16-bit signed integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeInt32()

public mixed SetaPDF_Core_Writer_Binary::writeInt32 ( integer $int [, string $byteOrder = self::BYTE_ORDER_BIG_ENDIAN ] )

Writes a 32-bit signed integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeInt8()

public self SetaPDF_Core_Writer_Binary::writeInt8 ( integer $int )

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

Parameters
$int : integer
 

writeUInt16()

public self SetaPDF_Core_Writer_Binary::writeUInt16 ( integer $int [, string $byteOrder = self::BYTE_ORDER_BIG_ENDIAN ] )

Writes a 16-bit unsigned integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeUInt32()

public mixed SetaPDF_Core_Writer_Binary::writeUInt32 ( integer $int [, string $byteOrder = self::BYTE_ORDER_BIG_ENDIAN ] )

Writes a 32-bit unsigned integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeUInt8()

public self SetaPDF_Core_Writer_Binary::writeUInt8 ( integer $int )

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

Parameters
$int : integer