SetaPDF_Core_Writer_Binary A class representing a binary writer

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

Class hierarchy

Summary

Constants

BYTE_ORDER_BIG_ENDIAN

const string SetaPDF_Core_Writer_Binary::BYTE_ORDER_BIG_ENDIAN = 'bigEndian'

Big endian byte order

BYTE_ORDER_LITTLE_ENDIAN

const string SetaPDF_Core_Writer_Binary::BYTE_ORDER_LITTLE_ENDIAN = 'littleEndian'

Little endian byte order


Properties

$_writer

protected SetaPDF_Core_Writer_WriterInterface SetaPDF_Core_Writer_Binary::$_writer

The main writer instance


Methods

__construct()

cleanUp()

public SetaPDF_Core_Writer_Binary::cleanUp (
void
): void

Release resources/cycled references.

getWiter()

writeBytes()

public SetaPDF_Core_Writer_Binary::writeBytes (
string $bytes
): void

Writes various bytes.

Parameters
$bytes : string
 

writeInt16()

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

Writes a 16-bit signed integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeInt32()

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

Writes a 32-bit signed integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeInt8()

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

Parameters
$int : integer
 

writeUInt16()

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

Writes a 16-bit unsigned integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeUInt32()

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

Writes a 32-bit unsigned integer.

Parameters
$int : integer
 
$byteOrder : string
 

writeUInt8()

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

Parameters
$int : integer