pub fn read_fields(buf: &[u8]) -> Vec<&[u8]>
Splits a payload into NUL-terminated fields, dropping the final empty segment like Python.