Class PelEntryByte

Description

Class for holding unsigned bytes.

This class can hold bytes, either just a single byte or an array of bytes. The class will be used to manipulate any of the Exif tags which has format PelFormat::BYTE.

Located in /src/PelEntryByte.php (line 55)

PelEntry
   |
   --PelEntryNumber
      |
      --PelEntryByte
Method Summary
PelEntryByte __construct (PelTag $tag, int $value...)
string numberToBytes (int $number, PelByteOrder $order)
Variables
Methods
Constructor __construct (line 74)

Make a new entry that can hold an unsigned byte.

The method accept several integer arguments. The getValue method will always return an array except for when a single integer argument is given here.

PelEntryByte __construct (PelTag $tag, int $value...)
  • int $value...: the byte(s) that this entry will represent. The argument passed must obey the same rules as the argument to setValue, namely that it should be within range of an unsigned byte, that is between 0 and 255 (inclusive). If not, then a PelOverflowException will be thrown.
  • PelTag $tag: the tag which this entry represents. This should be one of the constants defined in PelTag which has format PelFormat::BYTE.
numberToBytes (line 96)

Convert a number into bytes.

  • return: bytes representing the number given.
string numberToBytes (int $number, PelByteOrder $order)

Redefinition of:
PelEntryNumber::numberToBytes()
Convert a number into bytes.

Inherited Methods

Inherited From PelEntryNumber

PelEntryNumber::addNumber()
PelEntryNumber::formatNumber()
PelEntryNumber::getBytes()
PelEntryNumber::getText()
PelEntryNumber::getValue()
PelEntryNumber::numberToBytes()
PelEntryNumber::setValue()
PelEntryNumber::setValueArray()
PelEntryNumber::validateNumber()

Inherited From PelEntry

PelEntry::getBytes()
PelEntry::getComponents()
PelEntry::getFormat()
PelEntry::getIfdType()
PelEntry::getTag()
PelEntry::getText()
PelEntry::getValue()
PelEntry::setIfdType()
PelEntry::setValue()
PelEntry::__toString()

Documentation generated on Thu, 05 May 2011 07:19:03 +0200 by phpDocumentor 1.4.3