WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

MaxMind\Db\Reader

Decoder::decode() public WC 1.0

{} Это метод класса: Decoder{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$Decoder = new Decoder();
$Decoder->decode( $offset );
$offset (обязательный)
-

Код Decoder::decode() WC 5.4.1

<?php
public function decode($offset)
{
    $ctrlByte = \ord(Util::read($this->fileStream, $offset, 1));
    ++$offset;

    $type = $ctrlByte >> 5;

    // Pointers are a special case, we don't read the next $size bytes, we
    // use the size to determine the length of the pointer and then follow
    // it.
    if ($type === self::_POINTER) {
        list($pointer, $offset) = $this->decodePointer($ctrlByte, $offset);

        // for unit testing
        if ($this->pointerTestHack) {
            return [$pointer];
        }

        list($result) = $this->decode($pointer);

        return [$result, $offset];
    }

    if ($type === self::_EXTENDED) {
        $nextByte = \ord(Util::read($this->fileStream, $offset, 1));

        $type = $nextByte + 7;

        if ($type < 8) {
            throw new InvalidDatabaseException(
                'Something went horribly wrong in the decoder. An extended type '
                . 'resolved to a type number < 8 ('
                . $type
                . ')'
            );
        }

        ++$offset;
    }

    list($size, $offset) = $this->sizeFromCtrlByte($ctrlByte, $offset);

    return $this->decodeByType($type, $offset, $size);
}