From 02387a1dc1ec156e0613920645cf47a51a04a930 Mon Sep 17 00:00:00 2001 From: onur1 Date: Mon, 10 Jan 2022 07:38:40 +0100 Subject: Update README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d8a32bb..ca301ad 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # binproto generic support for binary-based request response protocols. + +## Message format + +binproto header is a varint encoded unsigned 64-bit integer which consist of an ID (first 60-bits) and a Channel number (last 4-bits). The rest of the message is data. + +## Buffered + +binproto uses an internal buffer which allocates 4096 bytes by default. You can adjust this value if your protocol requires larger (or smaller) chunks. -- cgit v1.3.1