thesis / byte-reader-writer
An implementation for thesis/byte-order.
Fund package maintenance!
www.tinkoff.ru/cf/5MqZQas2dk7
0.1.0
2025-01-17 12:25 UTC
Requires
- php: ^8.3
- thesis/byte-order: ^0.2.0
- thesis/byte-reader: ^0.3.1
- thesis/byte-writer: ^0.2.1
- thesis/endian: ^0.1.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
- ergebnis/composer-normalize: ^2.45.0
- phpunit/phpunit: ^10.5.40
README
Installation
composer require thesis/byte-reader-writer
Basic usage
<?php declare(strict_types=1); use Thesis\ByteReaderWriter\ReaderWriter; use Thesis\ByteReader\Reader; $rw = new ReaderWriter( /* an implementation of Thesis\ByteReader\Reader or Thesis\ByteReader\Reader|Thesis\ByteReader\Writer */, /* an implementation of ?Thesis\ByteReader\Writer */ ); $rw ->writeUint16(4) ->write('test'); echo $rw->read($rw->readUint16()); // test