pub fn parse_batch_output(
output: &[u8],
requested: &[String],
) -> Result<HashMap<String, Vec<u8>>, String>Expand description
What:
Parse ordered batch output for the requested objects,
never reading blob bytes as
delimiters.
Why:
parseBatchOutput:
every header names the requested object,
every content ends with a
newline,
and nothing trails.
In TS you’d write (pseudocode):
function parseBatchOutput({ output, requestedOids }): ReadonlyMap<string, Uint8Array>;