Lines Matching defs:bytes
361 Maybe<uint8_t*> ValueSerializer::ReserveRawBytes(size_t bytes) {
363 size_t new_size = old_size + bytes;
1579 base::Vector<const uint8_t> bytes;
1582 if (!ReadRawBytes(byte_length).To(&bytes)) return {};
1583 return isolate_->factory()->NewStringFromOneByte(bytes, allocation);
1589 base::Vector<const uint8_t> bytes;
1593 !ReadRawBytes(byte_length).To(&bytes)) {
1607 // Copy the bytes directly into the new string.
1610 memcpy(string->GetChars(no_gc), bytes.begin(), bytes.length());
1621 base::Vector<const uint8_t> bytes;
1628 if (!ReadRawBytes(byte_length).To(&bytes)) {
1635 // If the bytes are verbatim what is in the flattened string, then the string
1640 memcmp(bytes.begin(), chars.begin(), byte_length) == 0) {
1647 memcmp(bytes.begin(), chars.begin(), byte_length) == 0) {
1654 memcmp(bytes.begin(), chars.begin(), byte_length) == 0) {
1721 // byte to encode, if there are fewer bytes than that we can also fail fast.