Bencodex

Writer

An interface to write a byte string (which can be quite long) in separated multiple chunks.

Table of Contents

write()  : void
Writes the given chunk of bytes.

Methods

write()

Writes the given chunk of bytes.

public write(string $bytes) : void
Parameters
$bytes : string

The byte string to write. This is usually a chunk of a longer byte string.

Tags
throws
TypeError

Thrown when the given bytes is not a string value.

Return values
void

Search results