AddBytes 55 base/i18n/streaming_utf8_validator.cc return StreamingUtf8Validator().AddBytes(string.data(), string.size()) == AddBytes 41 base/i18n/streaming_utf8_validator.h State AddBytes(const char* data, size_t size); AddBytes 80 base/i18n/streaming_utf8_validator_unittest.cc validator.AddBytes(test, sizeof n) == VALID_ENDPOINT) AddBytes 242 base/i18n/streaming_utf8_validator_unittest.cc validator.AddBytes(sequence.data(), sequence.size())) AddBytes 259 base/i18n/streaming_utf8_validator_unittest.cc state = validator.AddBytes(&*cit, 1); AddBytes 283 base/i18n/streaming_utf8_validator_unittest.cc validator.AddBytes(c1.data(), c1.size()); AddBytes 284 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(expected, validator.AddBytes(c2.data(), c2.size())) AddBytes 294 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(VALID_ENDPOINT, StreamingUtf8Validator().AddBytes(kNothing, 0)); AddBytes 303 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(VALID_ENDPOINT, StreamingUtf8Validator().AddBytes(kNul, 1)); AddBytes 311 base/i18n/streaming_utf8_validator_unittest.cc StreamingUtf8Validator().AddBytes(kHelloWorld, strlen(kHelloWorld))); AddBytes 317 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(INVALID, validator.AddBytes("\xC0", 1)); AddBytes 318 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(INVALID, validator.AddBytes("a", 1)); AddBytes 320 base/i18n/streaming_utf8_validator_unittest.cc EXPECT_EQ(VALID_ENDPOINT, validator.AddBytes("a", 1)); AddBytes 369 net/websockets/websocket_channel.cc outgoing_utf8_validator_.AddBytes(vector_as_array(&data), data.size()); AddBytes 868 net/websockets/websocket_channel.cc StreamingUtf8Validator::State state = incoming_utf8_validator_.AddBytes( AddBytes 135 net/websockets/websocket_deflate_stream.cc if (frame->data && !deflater_.AddBytes(frame->data->data(), AddBytes 313 net/websockets/websocket_deflate_stream.cc if (frame->data && !inflater_.AddBytes(frame->data->data(), AddBytes 698 net/websockets/websocket_deflate_stream_test.cc deflater.AddBytes(original_data.data(), original_data.size()); AddBytes 1125 net/websockets/websocket_deflate_stream_test.cc deflater.AddBytes(data.data(), data.size()); AddBytes 40 net/websockets/websocket_deflater.h bool AddBytes(const char* data, size_t size); AddBytes 37 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 43 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 54 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 60 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 74 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes(&input[i], 1)); AddBytes 86 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 91 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes("Hello", 5)); AddBytes 111 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes(input.data(), input.size())); AddBytes 128 net/websockets/websocket_deflater_test.cc ASSERT_TRUE(deflater.AddBytes(input.data(), input.size())); AddBytes 86 net/websockets/websocket_inflater.cc return AddBytes("\x00\x00\xff\xff", 4); AddBytes 43 net/websockets/websocket_inflater.h bool AddBytes(const char* data, size_t size); AddBytes 37 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 44 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x00\x11\x00\x00", 5)); AddBytes 57 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 75 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 86 net/websockets/websocket_inflater_test.cc EXPECT_FALSE(inflater.AddBytes("\xf2\x48\xcd\xc9INVALID DATA", 16)); AddBytes 93 net/websockets/websocket_inflater_test.cc EXPECT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9INVALID DATA", 16)); AddBytes 106 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes(&input[i], 1)); AddBytes 119 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 127 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\x01", 1)); AddBytes 131 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 144 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 152 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\x01", 1)); AddBytes 157 net/websockets/websocket_inflater_test.cc ASSERT_FALSE(inflater.AddBytes("\xf2\x00\x11\x00\x00", 5)); AddBytes 165 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 177 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes("\xf2\x48\xcd\xc9\xc9\x07\x00", 7)); AddBytes 199 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(deflater.AddBytes(&input[0], input.size())); AddBytes 207 net/websockets/websocket_inflater_test.cc ASSERT_TRUE(inflater.AddBytes(compressed->data(), compressed->size())); AddBytes 1516 third_party/cld/encodings/compact_lang_det/compact_lang_det_impl.cc chunk_tote.AddBytes(scriptspan->text_bytes); AddBytes 1553 third_party/cld/encodings/compact_lang_det/compact_lang_det_impl.cc chunk_tote->AddBytes(len); AddBytes 1621 third_party/cld/encodings/compact_lang_det/compact_lang_det_impl.cc chunk_tote->AddBytes(len); AddBytes 1675 third_party/cld/encodings/compact_lang_det/compact_lang_det_impl.cc script_tote->AddBytes(1); AddBytes 20 third_party/cld/encodings/compact_lang_det/tote.h void AddBytes(int ibytes) {byte_count_ += ibytes;}