An open API service indexing awesome lists of open source software.

https://github.com/thesis-php/byte-order

The library adds methods for reading bytes in different byte order to Reader and Writer.
https://github.com/thesis-php/byte-order

Last synced: 5 months ago
JSON representation

The library adds methods for reading bytes in different byte order to Reader and Writer.

Awesome Lists containing this project

README

          

# ByteOrder

## Installation

```shell
composer require thesis/byte-order
```

## Basic usage

```php
read($reader->readUint16()),
$reader->readUint32(),
);
}

function writeFrame(WriteTo $writer, Frame $frame): void
{
$writer->writeUint16(\strlen($frame->id));
$writer->write($frame->id);
$writer->writeUint32($frame->attempts);
}
```