PHP code example of thesis / byte-buffer
1. Go to this page and download the library: Download thesis/byte-buffer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thesis / byte-buffer example snippets
declare(strict_types=1);
use Thesis\ByteBuffer\BufferedReader;
use Thesis\ByteBuffer\BufferedWriter;
use Thesis\ByteBuffer\BufferedReaderWriter;
$reader = new BufferedReader(/* an implementation of Thesis\ByteReader\Reader */);
$reader->read(10)
$writer = new BufferedWriter(/* an implementation of Thesis\ByteReader\Writer */)
$writer->write('test');
$rw = new BufferedReaderWriter(
/* an implementation of Thesis\ByteReader\Reader or Thesis\ByteReader\Reader&Thesis\ByteReader\Writer */,
/* an implementation of ?Thesis\ByteReader\Writer */,
);
$rw->write('test');
$rw->read(4);
$rw->flush();