WriteableBuffer
in
Tags
Table of Contents
Methods
- write() : self
- Writes a raw value into the buffer.
- writeInt16BE() : self
- Write an int16 to the buffer in big-endian format.
- writeInt16LE() : self
- Write an int16 to the buffer in little-endian format.
- writeInt32BE() : self
- Write an int32 to the buffer in big-endian format.
- writeInt32LE() : self
- Write an int32 to the buffer in little-endian format.
- writeInt8() : self
- Write an int8 to the buffer.
Methods
write()
Writes a raw value into the buffer.
public
write(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
Offset to write at; the buffer length is used when null.
Return values
selfwriteInt16BE()
Write an int16 to the buffer in big-endian format.
public
writeInt16BE(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
The offset to write the int8, if not provided the length of the buffer will be used
Return values
selfwriteInt16LE()
Write an int16 to the buffer in little-endian format.
public
writeInt16LE(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
The offset to write the int8, if not provided the length of the buffer will be used
Return values
selfwriteInt32BE()
Write an int32 to the buffer in big-endian format.
public
writeInt32BE(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
The offset to write the int8, if not provided the length of the buffer will be used
Return values
selfwriteInt32LE()
Write an int32 to the buffer in little-endian format.
public
writeInt32LE(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
The offset to write the int8, if not provided the length of the buffer will be used
Return values
selfwriteInt8()
Write an int8 to the buffer.
public
writeInt8(mixed $value[, int|null $offset = null ]) : self
Parameters
- $value : mixed
- $offset : int|null = null
-
The offset to write the int8, if not provided the length of the buffer will be used