Searched refs:payloadLength (Results 1 – 7 of 7) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/modules/websockets/ |
D | WebSocketFrame.cpp | 49 bool WebSocketFrame::needsExtendedLengthField(size_t payloadLength) in needsExtendedLengthField() argument 51 return payloadLength > maxPayloadLengthWithoutExtendedLengthField; in needsExtendedLengthField() 104 size_t payloadLength = static_cast<size_t>(payloadLength64); in parseFrame() local 106 if (static_cast<size_t>(bufferEnd - p) < maskingKeyLength + payloadLength) in parseFrame() 112 for (size_t i = 0; i < payloadLength; ++i) in parseFrame() 123 frame.payloadLength = payloadLength; in parseFrame() 124 frameEnd = p + maskingKeyLength + payloadLength; in parseFrame() 137 frameData.append(frame.payload, frame.payloadLength); in appendFramePayload() 141 for (size_t i = 0; i < frame.payloadLength; ++i) in appendFramePayload() 154 if (payloadLength <= maxPayloadLengthWithoutExtendedLengthField) in makeFrameData() [all …]
|
D | WebSocketPerMessageDeflateTest.cpp | 54 EXPECT_EQ(7u, f1.payloadLength); in TEST() 55 EXPECT_EQ(0, memcmp("\xf2\x48\xcd\xc9\xc9\x07\x00", f1.payload, f1.payloadLength)); in TEST() 61 EXPECT_EQ(5u, f2.payloadLength); in TEST() 62 EXPECT_EQ(0, memcmp("\xf2\x00\x11\x00\x00", f2.payload, f2.payloadLength)); in TEST() 76 EXPECT_EQ(7u, f1.payloadLength); in TEST() 77 EXPECT_EQ(0, memcmp("\xf2\x48\xcd\xc9\xc9\x07\x00", f1.payload, f1.payloadLength)); in TEST() 83 EXPECT_EQ(7u, f2.payloadLength); in TEST() 84 EXPECT_EQ(0, memcmp("\xf2\x48\xcd\xc9\xc9\x07\x00", f2.payload, f2.payloadLength)); in TEST() 110 expected = std::string(frame.payload, frame.payloadLength); in TEST() 120 actual += std::string(frame.payload, frame.payloadLength); in TEST() [all …]
|
D | WebSocketPerMessageDeflate.cpp | 185 && frame.payloadLength <= 2) { in deflate() 191 if (frame.payloadLength > 0 && !m_deflater->addBytes(frame.payload, frame.payloadLength)) { in deflate() 202 frame.payloadLength = m_deflater->size(); in deflate() 239 if (frame.payloadLength > 0 && !m_inflater->addBytes(frame.payload, frame.payloadLength)) { in inflate() 249 frame.payloadLength = m_inflater->size(); in inflate()
|
D | WebSocketFrame.h | 59 static bool needsExtendedLengthField(size_t payloadLength); 76 WebSocketFrame(OpCode, const char* payload, size_t payloadLength, Flags = EmptyFlags); 86 size_t payloadLength; member
|
D | WebSocketDeflateFramer.cpp | 177 if (!enabled() || !WebSocketFrame::isNonControlOpCode(frame.opCode) || !frame.payloadLength) in deflate() 179 if (!m_deflater->addBytes(frame.payload, frame.payloadLength) || !m_deflater->finish()) { in deflate() 185 frame.payloadLength = m_deflater->size(); in deflate() 206 if (!m_inflater->addBytes(frame.payload, frame.payloadLength) || !m_inflater->finish()) { in inflate() 212 frame.payloadLength = m_inflater->size(); in inflate()
|
D | MainThreadWebSocketChannel.cpp | 562 …::isControlOpCode(frame.opCode) && WebSocketFrame::needsExtendedLengthField(frame.payloadLength)) { in processFrame() 563 …eceived control frame having too long payload: " + String::number(frame.payloadLength) + " bytes"); in processFrame() 583 m_continuousFrameData.append(frame.payload, frame.payloadLength); in processFrame() 612 if (frame.payloadLength) in processFrame() 613 message = String::fromUTF8(frame.payload, frame.payloadLength); in processFrame() 625 m_continuousFrameData.append(frame.payload, frame.payloadLength); in processFrame() 632 OwnPtr<Vector<char> > binaryData = adoptPtr(new Vector<char>(frame.payloadLength)); in processFrame() 633 memcpy(binaryData->data(), frame.payload, frame.payloadLength); in processFrame() 640 m_continuousFrameData.append(frame.payload, frame.payloadLength); in processFrame() 646 if (!frame.payloadLength) in processFrame() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
D | InspectorResourceAgent.cpp | 560 .setPayloadData(String(frame.payload, frame.payloadLength)); in didReceiveWebSocketFrame() 569 .setPayloadData(String(frame.payload, frame.payloadLength)); in didSendWebSocketFrame()
|