private function fromUInt16($value, $order = 0)
    {
        list(, $int) = unpack(
            ($order == self::BIG_ENDIAN_ORDER ? 'n' : ($order == self::LITTLE_ENDIAN_ORDER ? 'v' : 'S')) . '*',
            $value
        );
        return $int;
    }