Searched refs:put_varint (Results 1 – 7 of 7) sorted by relevance
156 b.put_varint(DATA_FRAME_TYPE_ID)?; in to_bytes()157 b.put_varint(payload.len() as u64)?; in to_bytes()163 b.put_varint(HEADERS_FRAME_TYPE_ID)?; in to_bytes()164 b.put_varint(header_block.len() as u64)?; in to_bytes()170 b.put_varint(CANCEL_PUSH_FRAME_TYPE_ID)?; in to_bytes()171 b.put_varint(octets::varint_len(*push_id) as u64)?; in to_bytes()173 b.put_varint(*push_id)?; in to_bytes()217 b.put_varint(SETTINGS_FRAME_TYPE_ID)?; in to_bytes()218 b.put_varint(len as u64)?; in to_bytes()221 b.put_varint(SETTINGS_MAX_FIELD_SECTION_SIZE)?; in to_bytes()[all …]
642 b.put_varint(ty)?; in open_uni()1046 b.put_varint(1).unwrap(); in push_good()1180 b.put_varint(frame::GOAWAY_FRAME_TYPE_ID).unwrap(); in zero_length_goaway()1181 b.put_varint(0).unwrap(); in zero_length_goaway()1219 b.put_varint(frame::PUSH_PROMISE_FRAME_TYPE_ID).unwrap(); in zero_length_push_promise()1220 b.put_varint(0).unwrap(); in zero_length_push_promise()1260 b.put_varint(frame::CANCEL_PUSH_FRAME_TYPE_ID).unwrap(); in zero_length_cancel_push()1261 b.put_varint(0).unwrap(); in zero_length_cancel_push()1307 b.put_varint(frame::MAX_PUSH_FRAME_TYPE_ID).unwrap(); in zero_length_max_push_id()1308 b.put_varint(0).unwrap(); in zero_length_max_push_id()
1143 b.put_varint(frame::HEADERS_FRAME_TYPE_ID)?; in send_headers()1144 b.put_varint(header_block.len() as u64)?; in send_headers()1268 b.put_varint(frame::DATA_FRAME_TYPE_ID)?; in send_body()1269 b.put_varint(body_len as u64)?; in send_body()1345 b.put_varint(flow_id)?; in send_dgram()1546 b.put_varint(frame::PRIORITY_UPDATE_FRAME_REQUEST_TYPE_ID)?; in send_priority_update_for_request()1547 b.put_varint(frame_payload_len as u64)?; in send_priority_update_for_request()1548 b.put_varint(stream_id)?; in send_priority_update_for_request()1837 conn.stream_send(stream_id, b.put_varint(ty)?, false)?; in open_uni_stream()1929 conn.stream_send(stream_id, b.put_varint(grease_frame1)?, false)?; in send_grease_frames()[all …]
356 b.put_varint(0x00)?; in to_bytes()363 b.put_varint(0x01)?; in to_bytes()372 b.put_varint(0x02)?; in to_bytes()374 b.put_varint(0x03)?; in to_bytes()382 b.put_varint(first.end - 1)?; in to_bytes()383 b.put_varint(*ack_delay)?; in to_bytes()384 b.put_varint(it.len() as u64)?; in to_bytes()385 b.put_varint(ack_block)?; in to_bytes()393 b.put_varint(gap)?; in to_bytes()394 b.put_varint(ack_block)?; in to_bytes()[all …]
495 out.put_varint(v.len() as u64)?; in to_bytes()501 out.put_varint(0)?; in to_bytes()
7747 b.put_varint(ty)?; in encode_param()7748 b.put_varint(len as u64)?; in encode_param()7771 b.put_varint(tp.max_idle_timeout)?; in encode()7787 b.put_varint(tp.max_udp_payload_size)?; in encode()7796 b.put_varint(tp.initial_max_data)?; in encode()7805 b.put_varint(tp.initial_max_stream_data_bidi_local)?; in encode()7814 b.put_varint(tp.initial_max_stream_data_bidi_remote)?; in encode()7823 b.put_varint(tp.initial_max_stream_data_uni)?; in encode()7832 b.put_varint(tp.initial_max_streams_bidi)?; in encode()7841 b.put_varint(tp.initial_max_streams_uni)?; in encode()[all …]
432 pub fn put_varint(&mut self, v: u64) -> Result<&mut [u8]> { in put_varint() method969 fn put_varint() { in put_varint() function973 assert!(b.put_varint(151288809941952652).is_ok()); in put_varint()983 assert!(b.put_varint(494878333).is_ok()); in put_varint()993 assert!(b.put_varint(15293).is_ok()); in put_varint()1003 assert!(b.put_varint(37).is_ok()); in put_varint()1013 assert!(b.put_varint(151288809941952652).is_err()); in put_varint()1026 assert!(b.put_varint(std::u64::MAX).is_err()); in varint_too_large()