Class PelEntrySByte

Description

Class for holding signed 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 /PelEntryByte.php (line 113)

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

Make a new entry that can hold a signed 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.

PelEntrySByte __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 a signed byte, that is between -128 and 127 (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 154)

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 Tue, 19 Dec 2006 01:08:19 +0100 by phpDocumentor 1.3.0 SourceForge.net Logo