89 if (!isset(self::$byteOrder)) {
91 $teststr = pack(
'd', 1.2345);
92 $number = pack(
'C8', 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F);
93 if ($number == $teststr) {
95 } elseif ($number == strrev($teststr)) {
99 throw new WriterException(
'Required floating point format not supported on this platform.');
101 self::$byteOrder = $byte_order;
104 return self::$byteOrder;
114 if (strlen(
$data) - 4 > $this->limit) {
117 $this->_data .=
$data;
118 $this->_datasize += strlen(
$data);
130 if (strlen(
$data) - 4 > $this->limit) {
133 $this->_datasize += strlen(
$data);
151 $unknown = pack(
'VV', 0x000100D1, 0x00000406);
158 $header = pack(
'vv', $record, $length);
171 $header = pack(
'vv', $record, $length);
182 $header = pack(
'vv', $record, $length);
211 $data_length = strlen(
$data);
220 $tmp .= substr(
$data, $i);
static getByteOrder()
Determine the byte order and store it as class data to avoid recalculating it for each call to new()...
writeData($data)
General storage function like append, but returns string instead of modifying $this->_data.
storeEof()
Writes Excel EOF record to indicate the end of a BIFF stream.
writeEof()
Writes Excel EOF record to indicate the end of a BIFF stream.
append($data)
General storage function.
storeBof($type)
Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file...
__construct()
Constructor.
addContinue($data)
Excel limits the size of BIFF records.