mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-18 09:15:37 +00:00
Encode the Stream ID for Stream frames
This commit is contained in:
@@ -60,6 +60,7 @@ impl Codec for StreamFrame {
|
||||
0
|
||||
};
|
||||
buf.put_u8(0x10 | has_offset | has_len | is_fin);
|
||||
VarLen::new(self.id).encode(buf);
|
||||
if let Some(offset) = self.offset {
|
||||
VarLen::new(offset).encode(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user