Home | History | Annotate | Download | only in test

Lines Matching refs:lengthBytes

176   uint16_t lengthBytes = htons(static_cast<u_short>(12 + payloadSize + 8));
182 EXPECT_EQ(1u, fwrite(&lengthBytes, 2, 1, _rtpFile));
191 uint16_t lengthBytes;
194 size_t read_len = fread(&lengthBytes, 2, 1, _rtpFile);
202 lengthBytes = ntohs(lengthBytes);
211 EXPECT_EQ(lengthBytes, plen + 8);
216 if (lengthBytes < 20) {
219 if (payloadSize < static_cast<size_t>((lengthBytes - 20))) {
222 lengthBytes -= 20;
223 EXPECT_EQ(lengthBytes, fread(payloadData, 1, lengthBytes, _rtpFile));
224 return lengthBytes;