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 111)

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

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 152)

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::getTag()
 PelEntry::getText()
 PelEntry::newFromData()
 PelEntry::__toString()

SourceForge.net Logo Documentation generated on Wed, 21 Jul 2004 19:13:00 +0200 by phpDocumentor 1.3.0RC3