DiscordPHP-Voice Documentation

AbstractBuffer
in package
implements ReadableBuffer, WriteableBuffer

AbstractYes
Tags
author

alexandre433

Table of Contents

Interfaces

ReadableBuffer
WriteableBuffer

Methods

__construct()  : mixed
__toString()  : string
getLastEmptyPosition()  : int
length()  : int

Methods

__construct()

public abstract __construct(string|int $argument) : mixed
Parameters
$argument : string|int

A binary string to wrap, or an integer size to pre-allocate.

__toString()

public abstract __toString() : string
Return values
string —

The buffer's contents as a raw binary string.

getLastEmptyPosition()

public abstract getLastEmptyPosition() : int
Return values
int —

The offset of the first empty (unwritten) byte.

length()

public abstract length() : int
Return values
int —

The buffer's length in bytes.

On this page

Search results