intLength(); $bytes = mb_substr($data, $idx, $length, '8bit'); $idx += $length; $num = BigInt::fromSignedOctets($bytes)->getValue(); $offset = $idx; // late static binding since enumerated extends integer type return self::create($num); } }