Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

PHPBinaryReader

What is this?

A binary reader class written in PHP to process little-endian bytes with no hassle.

Example Usage

$content = file_get_contents('file.bin');
$reader = new BufferReader($content);

while($reader->hasNext()) {
  // do something with the byte
  $byte = $reader->readByte();
}
...

Example reading different data types

$content = file_get_contents('file.bin');
$reader = new BufferReader($content);

$byte = $reader->readByte();
$unsignedShort = $reader->readShort();
$unsignedLong = $reader->readLong();
$string = $reader->readString();
$stringWithKnownLength = $reader->readString(200);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages