BinaryStream
BinaryStream
Types:
- string(s) - Sequence of
s
chars. - bit(s=1) - Sequence of
s
bits. - integer(s) - Double or integer in
s
bits. - float(s) - Float or long in
s
bits.
Read methods:
- readBit()
- readBits(array bitsList)
- readGroup(name) or readGroup(array fields)
Navigation methods:
- mark(name) or markOffset(offset, name)
- goto(offset) or goto(name)
- isMarked(name)
- skip(bytes)
Endian problems:
php
setEndian(BinaryStream::BIG)
// or
setEndian(BinaryStream::LITTLE)
Configuration
- loadConfiguration(file)
- saveConfiguration(file)
Groups
- saveGroup(name, array fields)
Written by wapmorgan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#