Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Custom tuple parser, types of fields, raw tuple data. #11

@chertov

Description

@chertov

Please consider making the method Tuple::as_buffer(&self) -> Result<Vec<u8>, Error> public.
I would like to parse unknown tuples with RMP crate.

pub(crate) fn as_buffer(&self) -> Result<Vec<u8>, Error> {

example:

let buf = tuple.as_buffer()?;
let value = rmpv::decode::read_value(&mut &buf[..])?;
debug!("{:?}", value);

Or maybe is it possible to return the type of field by the filed index?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions