README
Classes
Functions
- readExif(file) ⇒
Object
Read the EXIF data out of a valid BinaryFile.
BinaryFile
Kind: global class
- BinaryFile
- new BinaryFile(byteString)
- .getByteAt(index) ⇒
Number
- .getLength() ⇒
*
- .getStringAt(a, b) ⇒
string
- .getShortAt(offset, isBigEndian) ⇒
*
- .getLongAt(offset, isBigEndian) ⇒
*
- .getSLongAt(offset, isBigEndian) ⇒
number
new BinaryFile(byteString)
A binary file abstraction that exposes methods for reading data from a binary file.
Param | Description |
---|---|
byteString | a binary byte string |
Number
binaryFile.getByteAt(index) ⇒ Return the byte value at index
Kind: instance method of BinaryFile
Access: public
Param | Type |
---|---|
index | number |
*
binaryFile.getLength() ⇒ Return the length of the file
Kind: instance method of BinaryFile
Access: public
string
binaryFile.getStringAt(a, b) ⇒ Return string value starting at position a of length b
Kind: instance method of BinaryFile
Access: public
Param | Type |
---|---|
a | number |
b | number |
*
binaryFile.getShortAt(offset, isBigEndian) ⇒ Return the short value at offset
Kind: instance method of BinaryFile
Access: public
Param | Type |
---|---|
offset | number |
isBigEndian | Boolean |
*
binaryFile.getLongAt(offset, isBigEndian) ⇒ Return the long value at offset
Kind: instance method of BinaryFile
Access: public
Param | Type |
---|---|
offset | number |
isBigEndian | Boolean |
number
binaryFile.getSLongAt(offset, isBigEndian) ⇒ Return the signed long value at offset
Kind: instance method of BinaryFile
Access: public
Param | Type |
---|---|
offset | number |
isBigEndian | Boolean |
Object
readExif(file) ⇒ Read the EXIF data out of a valid BinaryFile.
Kind: global function
Param | Type | Description |
---|---|---|
file | BinaryFile |
A valid JPEG BinaryFile |