Searched refs:first_byte (Results 1 - 21 of 21) sorted by relevance

/external/chromium_org/third_party/libjingle/source/talk/base/
H A Dbasictypes_unittest.cc36 uint8 first_byte = *reinterpret_cast<uint8*>(&v16); local
38 EXPECT_EQ(0x34u, first_byte);
40 EXPECT_EQ(0x12u, first_byte);
/external/chromium_org/net/websockets/
H A Dwebsocket_frame.cc109 uint8 first_byte = 0u; local
110 first_byte |= header.final ? kFinalBit : 0u;
111 first_byte |= header.reserved1 ? kReserved1Bit : 0u;
112 first_byte |= header.reserved2 ? kReserved2Bit : 0u;
113 first_byte |= header.reserved3 ? kReserved3Bit : 0u;
114 first_byte |= header.opcode & kOpCodeMask;
115 buffer[buffer_index++] = first_byte;
H A Dwebsocket_frame_parser.cc112 uint8 first_byte = *current++;
115 bool final = (first_byte & kFinalBit) != 0;
116 bool reserved1 = (first_byte & kReserved1Bit) != 0;
117 bool reserved2 = (first_byte & kReserved2Bit) != 0;
118 bool reserved3 = (first_byte & kReserved3Bit) != 0;
119 OpCode opcode = first_byte & kOpCodeMask;
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
H A Dmux_client_for_testing.py157 first_byte = ord(data[pos])
159 opcode = (first_byte >> 5) & 0x7
164 block.encode = (first_byte >> 2) & 3
165 block.rejected = (first_byte >> 4) & 1
171 size_of_size = (first_byte & 3) + 1
178 block.mux_error = (first_byte >> 4) & 1
184 size_of_size = first_byte & 3
194 size_of_quota = (first_byte & 3) + 1
199 size_of_slots = ((first_byte >> 2) & 3) + 1
200 size_of_quota = (first_byte
[all...]
H A Dclient_for_testing.py231 first_byte = ord(received[0])
232 fin = (first_byte >> 7) & 1
233 rsv1 = (first_byte >> 6) & 1
234 rsv2 = (first_byte >> 5) & 1
235 rsv3 = (first_byte >> 4) & 1
236 opcode = first_byte & 0xf
/external/chromium/sdch/open-vcdiff/src/
H A Drolling_hash.h153 unsigned char first_byte) {
154 return RollingHashUtil::ModBase(full_hash + remove_table_[first_byte]);
152 RemoveFirstByteFromHash(uint32_t full_hash, unsigned char first_byte) argument
/external/chromium_org/sdch/open-vcdiff/src/
H A Drolling_hash.h152 unsigned char first_byte) {
153 return RollingHashUtil::ModBase(full_hash + remove_table_[first_byte]);
151 RemoveFirstByteFromHash(uint32_t full_hash, unsigned char first_byte) argument
/external/open-vcdiff/src/
H A Drolling_hash.h152 unsigned char first_byte) {
153 return RollingHashUtil::ModBase(full_hash + remove_table_[first_byte]);
151 RemoveFirstByteFromHash(uint32_t full_hash, unsigned char first_byte) argument
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/
H A Dmux.py181 first_byte = (opcode << 5) | (flags << 2) | bytes_of_length
185 return (chr(first_byte) + _encode_channel_id(channel_id) +
218 first_byte = ((_MUX_OPCODE_FLOW_CONTROL << 5) |
220 payload = (_encode_channel_id(_CONTROL_CHANNEL_ID) + chr(first_byte) +
234 first_byte = ((_MUX_OPCODE_NEW_CHANNEL_SLOT << 5) |
236 payload = (_encode_channel_id(_CONTROL_CHANNEL_ID) + chr(first_byte) +
385 def _read_add_channel_request(self, first_byte, control_block):
386 reserved = (first_byte >> 4) & 0x1
387 encoding = (first_byte >> 2) & 0x3
388 size_of_handshake_size = (first_byte
[all...]
H A D_stream_hybi.py120 first_byte = ((fin << 7)
123 header += chr(first_byte)
194 first_byte = ord(received[0])
195 fin = (first_byte >> 7) & 1
196 rsv1 = (first_byte >> 6) & 1
197 rsv2 = (first_byte >> 5) & 1
198 rsv3 = (first_byte >> 4) & 1
199 opcode = first_byte & 0xf
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/
H A Dmux.py168 first_byte = ((_MUX_OPCODE_ADD_CHANNEL_RESPONSE << 5) |
170 block = (chr(first_byte) +
181 first_byte = _MUX_OPCODE_DROP_CHANNEL << 5
182 block = chr(first_byte) + _encode_channel_id(channel_id)
194 first_byte = _MUX_OPCODE_FLOW_CONTROL << 5
195 block = (chr(first_byte) +
204 first_byte = _MUX_OPCODE_NEW_CHANNEL_SLOT << 5
205 block = (chr(first_byte) +
212 first_byte = (_MUX_OPCODE_NEW_CHANNEL_SLOT << 5) | 1 # Set the F flag
213 block = (chr(first_byte)
[all...]
H A D_stream_hybi.py120 first_byte = ((fin << 7)
123 header += chr(first_byte)
194 first_byte = ord(received[0])
195 fin = (first_byte >> 7) & 1
196 rsv1 = (first_byte >> 6) & 1
197 rsv2 = (first_byte >> 5) & 1
198 rsv3 = (first_byte >> 4) & 1
199 opcode = first_byte & 0xf
/external/chromium_org/net/server/
H A Dweb_socket.cc283 unsigned char first_byte = *p++; local
286 bool final = (first_byte & kFinalBit) != 0;
287 bool reserved1 = (first_byte & kReserved1Bit) != 0;
288 bool reserved2 = (first_byte & kReserved2Bit) != 0;
289 bool reserved3 = (first_byte & kReserved3Bit) != 0;
290 int op_code = first_byte & kOpCodeMask;
/external/chromium_org/android_webview/browser/net/
H A Dinput_stream_reader_unittest.cc46 int SeekRange(int first_byte, int last_byte) { argument
48 byte_range.set_first_byte_position(first_byte);
H A Dandroid_stream_reader_url_request_job_unittest.cc163 void SetRange(net::URLRequest* req, int first_byte, int last_byte) { argument
167 first_byte, last_byte).GetHeaderValue());
/external/chromium_org/sandbox/win/src/
H A Dcrosscall_server.cc175 const char* first_byte = &backing_mem[min_declared_size]; local
187 (address < first_byte) || // Start cannot point too low.
/external/chromium_org/v8/src/
H A Dscanner-character-streams.cc221 static bool IsUtf8MultiCharacterStart(byte first_byte) { argument
222 return (first_byte & kUtf8MultiByteMask) == kUtf8MultiByteCharStart;
/external/v8/src/
H A Dscanner-character-streams.cc219 static bool IsUtf8MultiCharacterStart(byte first_byte) { argument
220 return (first_byte & kUtf8MultiByteMask) == kUtf8MultiByteCharStart;
/external/chromium_org/net/tools/testserver/
H A Dtestserver.py1543 first_byte = 0
1553 first_byte = int(mo.group(1))
1559 if last_byte < first_byte:
1572 'bytes %d-%d/%d' % (first_byte, last_byte, size))
1576 self.send_header('Content-Length', last_byte - first_byte + 1)
1589 self.wfile.write(DataForRange(first_byte, first_byte + 1))
1590 first_byte = first_byte + 1
1596 possible_rst = ((first_byte / rst_boundar
[all...]
/external/chromium_org/content/browser/indexed_db/
H A Dindexed_db_leveldb_coding.cc1134 unsigned char first_byte; local
1135 if (!DecodeByte(slice, &first_byte))
1138 size_t database_id_bytes = ((first_byte >> 5) & 0x7) + 1;
1139 size_t object_store_id_bytes = ((first_byte >> 2) & 0x7) + 1;
1140 size_t index_id_bytes = (first_byte & 0x3) + 1;
1195 unsigned char first_byte = local
1202 sizeof(first_byte) * 8,
1206 ret.push_back(first_byte);
/external/chromium/net/tools/spdyshark/
H A Dpacket-spdy.c1261 guint8 first_byte = tvb_get_guint8(tvb, 0); local
1262 if (first_byte != 0x80 && first_byte != 0x0)

Completed in 1172 milliseconds