Function

get-trailer-values

Gets multiple values associated with the trailer with the given name.

As opposed to get-trailer-value, this function returns all of the values for this trailer.

The first cursor values are skipped. The remaining values are encoded successively with a NUL byte after each into a list of bytes at most max-len long. If any of the remaining values don't fit, the returned option<u32> is the index of the first value that didn't fit, or none if all the remaining values fit. If max-len is too small to fit any value, an error.buffer-len error is returned, providing a recommended buffer size.

get-trailer-values: func(body: borrow​<body>, name: string, max-len: u64, cursor: u32) -> result​<tuple​<list​<u8>, option​<u32>>, trailer-error>;