Skip to main content

decode

Function decode 

Source
pub fn decode<'a>(
    chunks: impl IntoIterator<Item = &'a [u8]>,
) -> Result<Vec<PokePartBody>>
Expand description

Decodes the payloads of a poke’s chunks, in order, into its parts (decodePokeChunks): strict UTF-8, a leading BOM dropped as TextDecoder does, then pokePartsSchema.