Add null parsing

This commit is contained in:
Muaz Ahmad 2023-08-15 14:27:00 +05:00
parent 7311b761b2
commit a526753112

View file

@ -106,6 +106,8 @@ func read_next(data *[]byte, byte_idx *uint32) (interface{}, error) {
next_obj, err = read_string(data, byte_idx) next_obj, err = read_string(data, byte_idx)
case 3: case 3:
next_obj, err = read_object(data, byte_idx) next_obj, err = read_object(data, byte_idx)
case 5:
return nil, nil
default: default:
return nil, errors.New("Unhandled data type") return nil, errors.New("Unhandled data type")
} }