private static function decodeByteString($additional, &$bytes)
    {
        $length = self::decodeIntValue($additional, $bytes);
        self::checkByteArrayLength($bytes, $length);

        $array = array();
        for ($i = 0; $i < $length; $i++)
        {
            array_push($array, array_shift($bytes));
        }

        return $array;
    }
private static function decodeByteString($additional, &$bytes)
    {
        $length = self::decodeIntValue($additional, $bytes);
        self::checkByteArrayLength($bytes, $length);

        $array = array();
        for ($i = 0; $i < $length; $i++)
        {
            array_push($array, array_shift($bytes));
        }

        return $array;
    }
private static function decodeByteString ( $ additional , & $ bytes ) { $ length = self :: decodeIntValue ( $ additional , $ bytes ) ; self :: checkByteArrayLength ( $ bytes , $ length ) ; $ array = array ( ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { array_push ( $ array , array_shift ( $ bytes ) ) ; } return $ array ; }
Decodes a CBOR byte string, based on the first byte and additional data.

@param int $additional Additional type.
@param array $bytes Remaining bytes in string.
@throws CborException If the byte array is not long enough for the specified type of integer.
@return array Byte string.
Decodes a CBOR byte string based on the first byte and additional data .