Documentation

FastChunkSerializer
in package

This class provides a serializer used for transmitting chunks between threads.

The serialization format is not intended for permanent storage and may change without warning.

Table of Contents

FLAG_POPULATED  = 1 << 1
deserializeTerrain()  : Chunk
Deserializes a fast-serialized chunk
serializeTerrain()  : string
Fast-serializes the chunk for passing between threads TODO: tiles and entities
__construct()  : mixed

Constants

Methods

deserializeTerrain()

Deserializes a fast-serialized chunk

public static deserializeTerrain(string $data) : Chunk
Parameters
$data : string
Return values
Chunk

serializeTerrain()

Fast-serializes the chunk for passing between threads TODO: tiles and entities

public static serializeTerrain(Chunk $chunk) : string
Parameters
$chunk : Chunk
Return values
string

Search results