Searched refs:lengthBytes (Results 1 – 1 of 1) sorted by relevance
/external/webrtc/webrtc/modules/audio_coding/test/ |
D | RTPFile.cc | 176 uint16_t lengthBytes = htons(static_cast<u_short>(12 + payloadSize + 8)); in Write() local 182 EXPECT_EQ(1u, fwrite(&lengthBytes, 2, 1, _rtpFile)); in Write() 191 uint16_t lengthBytes; in Read() local 194 size_t read_len = fread(&lengthBytes, 2, 1, _rtpFile); in Read() 202 lengthBytes = ntohs(lengthBytes); in Read() 211 EXPECT_EQ(lengthBytes, plen + 8); in Read() 216 if (lengthBytes < 20) { in Read() 219 if (payloadSize < static_cast<size_t>((lengthBytes - 20))) { in Read() 222 lengthBytes -= 20; in Read() 223 EXPECT_EQ(lengthBytes, fread(payloadData, 1, lengthBytes, _rtpFile)); in Read() [all …]
|