protected function decode(Buffer $buffer)
    {

        $items = [];

        // Get the number of words in this buffer
        $itemCount = $buffer->readInt32();

        // Loop over the number of items
        for ($i = 0; $i < $itemCount; $i++) {
            // Length of the string
            $buffer->readInt32();

            // Just read the string
            $items[$i] = $buffer->readString();
        }

        return $items;
    }
protected function decode(Buffer $buffer)
    {

        $items = [];

        // Get the number of words in this buffer
        $itemCount = $buffer->readInt32();

        // Loop over the number of items
        for ($i = 0; $i < $itemCount; $i++) {
            // Length of the string
            $buffer->readInt32();

            // Just read the string
            $items[$i] = $buffer->readString();
        }

        return $items;
    }
protected function decode ( Buffer $ buffer ) { $ items = [ ] ; // Get the number of words in this buffer $ itemCount = $ buffer -> readInt32 ( ) ; // Loop over the number of items for ( $ i = 0 ; $ i < $ itemCount ; $ i ++ ) { // Length of the string $ buffer -> readInt32 ( ) ; // Just read the string $ items [ $ i ] = $ buffer -> readString ( ) ; } return $ items ; }
Decode the buffer into a usable format

@param \GameQ\Buffer $buffer

@return array
Decode the buffer into a usable format