Lines Matching refs:Bytes
111 static ORG_UNRECOGNIZED_CHUNK: Bytes =
112 Bytes::from_static(&[0xc0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x3]);
115 static ref RAW_IN: Bytes = {
165 Bytes::from_static(&[CT_ERROR.0, CHUNK_FLAGS, 0x00, 0x08, 0x00, 0x06, 0x00, 0x04]); in test_chunk_error_unrecognized_chunk_type_marshal_with_cause_value_being_nil()
186 static CHUNK_FORWARD_TSN_BYTES: Bytes =
187 Bytes::from_static(&[0xc0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x3]);
193 Bytes::from_static(&[0xc0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x3, 0x0, 0x4, 0x0, 0x5]), in test_chunk_forward_tsn_success()
194 Bytes::from_static(&[ in test_chunk_forward_tsn_success()
211 ("chunk header to short", Bytes::from_static(&[0xc0])), in test_chunk_forward_tsn_unmarshal_failure()
214 Bytes::from_static(&[0xc0, 0x0, 0x0, 0x4]), in test_chunk_forward_tsn_unmarshal_failure()
218 Bytes::from_static(&[ in test_chunk_forward_tsn_unmarshal_failure()
237 static TEST_CHUNK_RECONFIG_PARAM_A: Bytes = Bytes::from_static(&[
242 static TEST_CHUNK_RECONFIG_PARAM_B: Bytes = Bytes::from_static(&[
246 static TEST_CHUNK_RECONFIG_RESPONCE: Bytes =
247 Bytes::from_static(&[0x0, 0x10, 0x0, 0xc, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1]);
250 static ref TEST_CHUNK_RECONFIG_BYTES: Vec<Bytes> = {
308 ("chunk header to short", Bytes::from_static(&[0x82])), in test_chunk_reconfig_unmarshal_failure()
311 Bytes::from_static(&[0x82, 0x0, 0x0, 0x4]), in test_chunk_reconfig_unmarshal_failure()
315 Bytes::from_static(&[0x82, 0x0, 0x0, 0x8, 0x0, 0xd, 0x0, 0x0]), in test_chunk_reconfig_unmarshal_failure()
335 let tests = vec![Bytes::from_static(&[ in test_chunk_shutdown_success()
353 Bytes::from_static(&[0x07, 0x00, 0x00, 0x07, 0x12, 0x34, 0x56, 0x78]), in test_chunk_shutdown_failure()
357 Bytes::from_static(&[0x07, 0x00, 0x00, 0x09, 0x12, 0x34, 0x56, 0x78]), in test_chunk_shutdown_failure()
361 Bytes::from_static(&[0x07, 0x00, 0x00, 0x08, 0x12, 0x34, 0x56]), in test_chunk_shutdown_failure()
365 Bytes::from_static(&[0x07, 0x00, 0x00, 0x08, 0x12, 0x34, 0x56, 0x78, 0x9f]), in test_chunk_shutdown_failure()
369 Bytes::from_static(&[0x08, 0x00, 0x00, 0x08, 0x12, 0x34, 0x56, 0x78]), in test_chunk_shutdown_failure()
388 let tests = vec![Bytes::from_static(&[0x08, 0x00, 0x00, 0x04])]; in test_chunk_shutdown_ack_success()
402 ("length too short", Bytes::from_static(&[0x08, 0x00, 0x00])), in test_chunk_shutdown_ack_failure()
405 Bytes::from_static(&[0x08, 0x00, 0x00, 0x04, 0x12]), in test_chunk_shutdown_ack_failure()
409 Bytes::from_static(&[0x0f, 0x00, 0x00, 0x04]), in test_chunk_shutdown_ack_failure()
428 let tests = vec![Bytes::from_static(&[0x0e, 0x00, 0x00, 0x04])]; in test_chunk_shutdown_complete_success()
442 ("length too short", Bytes::from_static(&[0x0e, 0x00, 0x00])), in test_chunk_shutdown_complete_failure()
445 Bytes::from_static(&[0x0e, 0x00, 0x00, 0x04, 0x12]), in test_chunk_shutdown_complete_failure()
449 Bytes::from_static(&[0x0f, 0x00, 0x00, 0x04]), in test_chunk_shutdown_complete_failure()
473 let raw_pkt = Bytes::from_static(&[ in test_init_chunk()
511 let raw_pkt = Bytes::from_static(&[ in test_init_ack()
527 let raw_pkt = Bytes::from_static(&[ in test_chrome_chunk1_init()
545 let raw_pkt = Bytes::from_static(&[ in test_chrome_chunk2_init_ack()
636 let raw_pkt = Bytes::from_static(&[ in test_payload_data_marshal_unmarshal()
657 let raw_pkt = Bytes::from_static(&[ in test_select_ack_chunk()
675 let raw_pkt = Bytes::from_static(&[ in test_reconfig_chunk()
726 let raw_pkt = Bytes::from_static(&[ in test_select_ack_chunk_followed_by_a_payload_data_chunk()