• Home
  • Raw
  • Download

Lines Matching refs:bytes_size

164   ssize_t bytes_size;  in coap_ws_log_header()
167 bytes_size = header[1] & WS_B1_LEN_MASK; in coap_ws_log_header()
168 if (bytes_size == 127) { in coap_ws_log_header()
170 } else if (bytes_size == 126) { in coap_ws_log_header()
581 ssize_t bytes_size = 0; in coap_ws_read() local
655 bytes_size = session->ws->rd_header[1] & WS_B1_LEN_MASK; in coap_ws_read()
656 if (bytes_size == 127) { in coap_ws_read()
658 } else if (bytes_size == 126) { in coap_ws_read()
688 if (bytes_size == 127) { in coap_ws_read()
689 bytes_size = ((uint64_t)session->ws->rd_header[2] << 56) + in coap_ws_read()
697 } else if (bytes_size == 126) { in coap_ws_read()
698 bytes_size = ((uint16_t)session->ws->rd_header[2] << 8) + in coap_ws_read()
701 session->ws->data_size = bytes_size; in coap_ws_read()
702 if ((size_t)bytes_size > datalen) { in coap_ws_read()
704 " (%zu > %zu)\n", bytes_size, datalen); in coap_ws_read()
711 bytes_size); in coap_ws_read()
718 if (ret <= bytes_size) { in coap_ws_read()
722 if (ret == bytes_size) { in coap_ws_read()
725 coap_ws_mask_data(session, data, bytes_size); in coap_ws_read()
740 return bytes_size; in coap_ws_read()
744 memcpy(data, &session->ws->rd_header[2 + extra_hdr_len], bytes_size); in coap_ws_read()
745 session->ws->data_ofs = bytes_size; in coap_ws_read()
748 coap_ws_mask_data(session, data, bytes_size); in coap_ws_read()
752 &session->ws->rd_header[2 + extra_hdr_len + bytes_size], in coap_ws_read()
753 ret - bytes_size); in coap_ws_read()
755 session->ws->hdr_ofs = (int)(ret - bytes_size); in coap_ws_read()
756 return bytes_size; in coap_ws_read()