3Hren / 3Hren/msgpack-rust

Confusion on how to read raw bytes

Open
#313 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
162
PR merge metrics
No merged PRs in 30d

Description

I'm creating a low-level, codec used by multiple languages using MsgPack.

RMP has this `encode` API:

```
rmp::encode::write_bin_len(...);
rmp::endoce::write_bin(...);
```

However, it has this `decode` API:

```
rmp::decode::read_bin_len(...);
```

I was expecting a symmetric `rmp::decode::read_bin(...)`.

What's the idiomatic way to read raw bytes using the API?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.