Index
- \SetaPDF
- Core
- Core
- Canvas
- Canvas
- ColorSpace
- ColorSpace
- DataStructure
- Document
- Document
- Encoding
- Encoding
- Filter
- Font
- Font
- Geometry
- IccProfile
- Image
- Image
- Parser
- Reader
- Resource
- Resource
- SecHandler
- SecHandler
- Text
- Text
- Type
- Writer
- Writer
- XObject
- XObject
- BitConverter
- EmbeddedFileStream
- Exception
- FileSpecification
- OutputIntent
- PageBoundaries
- PageFormats
- Tokenizer
- TransparencyGroup
- WriteInterface
- XmpHelper
SetaPDF_Core_BitConverter A class that allows you to convert base data types to bytes and vice versa.
File: /SetaPDF v2/Core/BitConverter.php
Class hierarchy
Summary
Static Methods
- formatFromFixed()
- formatFromInt()
- formatFromInt16()
- formatFromInt32()
- formatFromInt8()
- formatFromUInt()
- formatFromUInt16()
- formatFromUInt32()
- formatFromUInt8()
- formatToFixed()
- formatToInt()
- formatToInt16()
- formatToInt32()
- formatToInt8()
- formatToUInt()
- formatToUInt16()
- formatToUInt32()
- formatToUInt8()
- getMachineByteOrder()
- getSize()
Constants
BYTE
BYTE_ORDER_BIG_ENDIAN
Constant for big endian byte order.
BYTE_ORDER_LITTLE_ENDIAN
Constant for little endian byte order.
CHAR
FIXED
INT16
INT32
INT8
LONG
SHORT
UINT16
UINT32
UINT8
ULONG
USHORT
Static Properties
$_machineByteOrder
static protected string SetaPDF_Core_BitConverter::$_machineByteOrder
The machine byte order.
Static Methods
formatFromInt16()
public static SetaPDF_Core_BitConverter::formatFromInt16 (
string $bytes [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): integerReads a 16-bit signed integer.
Parameters
- $bytes : string
- $byteOrder : string
formatFromInt32()
public static SetaPDF_Core_BitConverter::formatFromInt32 (
string $bytes [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): mixedReads a 32-bit signed integer.
Parameters
- $bytes : string
- $byteOrder : string
formatFromUInt16()
public static SetaPDF_Core_BitConverter::formatFromUInt16 (
string $bytes [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): integerReads a 16-bit unsigned integer.
Parameters
- $bytes : string
- $byteOrder : string
formatFromUInt32()
public static SetaPDF_Core_BitConverter::formatFromUInt32 (
string $bytes [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): mixedReads a 32-bit unsigned integer.
Parameters
- $bytes : string
- $byteOrder : string
formatToInt16()
public static SetaPDF_Core_BitConverter::formatToInt16 (
integer $int [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): stringWrites a 16-bit signed integer.
Parameters
- $int : integer
- $byteOrder : string
formatToInt32()
public static SetaPDF_Core_BitConverter::formatToInt32 (
integer $int [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): stringWrites a 32-bit signed integer.
Parameters
- $int : integer
- $byteOrder : string
formatToUInt16()
public static SetaPDF_Core_BitConverter::formatToUInt16 (
integer $int [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): stringWrites a 16-bit unsigned integer.
Parameters
- $int : integer
- $byteOrder : string
formatToUInt32()
public static SetaPDF_Core_BitConverter::formatToUInt32 (
integer $int [, string $byteOrder = SetaPDF_Core_BitConverter::BYTE_ORDER_BIG_ENDIAN ]
): mixedFormats a 32-bit unsigned integer.
Parameters
- $int : integer
- $byteOrder : string