/third_party/skia/src/codec/ |
H A D | SkJpegUtility.cpp | 46 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); in sk_fill_buffered_input_buffer() local 49 if (bytes == 0) { in sk_fill_buffered_input_buffer() 57 src->bytes_in_buffer = bytes; in sk_fill_buffered_input_buffer() 62 * Skip a certain number of bytes in the stream 66 size_t bytes = (size_t) numBytes; in sk_skip_buffered_input_data() local 68 if (bytes > src->bytes_in_buffer) { in sk_skip_buffered_input_data() 69 size_t bytesToSkip = bytes - src->bytes_in_buffer; in sk_skip_buffered_input_data() 106 size_t bytes = static_cast<size_t>(num_bytes); in sk_skip_mem_input_data() local 107 if(bytes > src->bytes_in_buffer) { in sk_skip_mem_input_data() 111 src->next_input_byte += bytes; in sk_skip_mem_input_data() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmComputeShaderTestUtil.hpp | 87 void getBytes (std::vector<deUint8>& bytes) const in getBytes() 99 bytes.resize(inputSize); in getBytes() 100 deMemcpy(&bytes.front(), &inputInts.front(), inputSize); in getBytes() 106 bytes.resize(outputSize, 0xffu); in getBytes() 110 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() 127 bytes.resize(m_numInputElements * sizeof(deInt32), 0xff); in getBytes() 131 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() 140 void getPackedBytes (std::vector<deUint8>& bytes) const in getPackedBytes() 142 return getBytes(bytes); in getPackedBytes() 266 Buffer (const std::vector<E>& elements, deUint32 padding = 0 /* in bytes */) in Buffer() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmComputeShaderTestUtil.hpp | 87 void getBytes (std::vector<deUint8>& bytes) const in getBytes() 99 bytes.resize(inputSize); in getBytes() 100 deMemcpy(&bytes.front(), &inputInts.front(), inputSize); in getBytes() 106 bytes.resize(outputSize, 0xffu); in getBytes() 110 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() 127 bytes.resize(m_numInputElements * sizeof(deInt32), 0xff); in getBytes() 131 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() 140 void getPackedBytes (std::vector<deUint8>& bytes) const in getPackedBytes() 142 return getBytes(bytes); in getPackedBytes() 266 Buffer (const std::vector<E>& elements, deUint32 padding = 0 /* in bytes */) in Buffer() [all...] |
/third_party/icu/icu4c/source/tools/makeconv/ |
H A D | genmbcs.cpp | 77 const uint8_t *bytes, int32_t length, 83 const uint8_t *bytes, int32_t length); 87 const uint8_t *bytes, int32_t length, 93 const uint8_t *bytes, int32_t length, 116 printBytes(char *buffer, const uint8_t *bytes, int32_t length) { in printBytes() argument 119 *s++=hexDigit((uint8_t)(*bytes>>4)); in printBytes() 120 *s++=hexDigit((uint8_t)(*bytes&0xf)); in printBytes() 121 ++bytes; in printBytes() 230 /* allocate 1M * maxCharLength bytes for at most 1M mappings */ in MBCSStartMappings() 375 const uint8_t *bytes, int32_ in MBCSAddToUnicode() 374 MBCSAddToUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSAddToUnicode() argument 558 MBCSIsValid(NewConverter *cnvData, const uint8_t *bytes, int32_t length) MBCSIsValid() argument 566 MBCSSingleAddFromUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t , UChar32 c, int8_t flag) MBCSSingleAddFromUnicode() argument 684 MBCSAddFromUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSAddFromUnicode() argument 902 MBCSOkForBaseFromUnicode(const MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSOkForBaseFromUnicode() argument [all...] |
/third_party/skia/third_party/externals/icu/source/tools/makeconv/ |
H A D | genmbcs.cpp | 77 const uint8_t *bytes, int32_t length, 83 const uint8_t *bytes, int32_t length); 87 const uint8_t *bytes, int32_t length, 93 const uint8_t *bytes, int32_t length, 116 printBytes(char *buffer, const uint8_t *bytes, int32_t length) { in printBytes() argument 119 *s++=hexDigit((uint8_t)(*bytes>>4)); in printBytes() 120 *s++=hexDigit((uint8_t)(*bytes&0xf)); in printBytes() 121 ++bytes; in printBytes() 230 /* allocate 1M * maxCharLength bytes for at most 1M mappings */ in MBCSStartMappings() 375 const uint8_t *bytes, int32_ in MBCSAddToUnicode() 374 MBCSAddToUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSAddToUnicode() argument 558 MBCSIsValid(NewConverter *cnvData, const uint8_t *bytes, int32_t length) MBCSIsValid() argument 566 MBCSSingleAddFromUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t , UChar32 c, int8_t flag) MBCSSingleAddFromUnicode() argument 684 MBCSAddFromUnicode(MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSAddFromUnicode() argument 902 MBCSOkForBaseFromUnicode(const MBCSData *mbcsData, const uint8_t *bytes, int32_t length, UChar32 c, int8_t flag) MBCSOkForBaseFromUnicode() argument [all...] |
/third_party/musl/porting/linux/user/src/hook/ |
H A D | malloc_common.c | 14 extern void* libc_gwp_asan_malloc(size_t bytes); 21 void* malloc(size_t bytes) in malloc() argument 23 if (bytes >= MALLOC_REPORT_LIMIT) { in malloc() 30 return dispatch_table->malloc(bytes); in malloc() 34 return libc_gwp_asan_malloc(bytes); in malloc() 36 return MuslFunc(malloc)(bytes); in malloc() 40 return libc_gwp_asan_malloc(bytes); in malloc() 42 return MuslFunc(malloc)(bytes); in malloc() 44 return dispatch_table->malloc(bytes); in malloc() 47 return libc_gwp_asan_malloc(bytes); in malloc() [all...] |
/third_party/node/deps/undici/src/lib/fileapi/ |
H A D | util.js | 55 // 7. Let bytes be an empty byte sequence. 57 const bytes = [] 96 // 2. Append bs to bytes. 97 bytes.push(value) 127 // bytes, type, blob’s type, and encodingName. 129 const result = packageData(bytes, type, blob.type, encodingName) 211 * @param {Uint8Array[]} bytes 216 function packageData (bytes, type, mimeType, encodingName) { 218 // bytes, a type, a optional mimeType, and a optional 224 // 1. Return bytes a [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | bytestream.cc | 72 void CheckedArrayByteSink::Append(const char* bytes, size_t n) { in Append() argument 78 if (n > 0 && bytes != (outbuf_ + size_)) { in Append() 80 GOOGLE_DCHECK(!(outbuf_ <= bytes && bytes < (outbuf_ + capacity_))) in Append() 81 << "Append() bytes[] overlaps with outbuf_[]"; in Append() 82 memcpy(outbuf_ + size_, bytes, n); in Append() 97 void GrowingArrayByteSink::Append(const char* bytes, size_t n) { in Append() argument 99 if (bytes != (buf_ + size_)) { in Append() 102 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf in Append() [all...] |
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | CodedOutputStreamTest.java | 87 private final byte[] bytes; field in CodedOutputStreamTest.ArrayCoder 90 bytes = new byte[size]; in ArrayCoder() 91 stream = CodedOutputStream.newInstance(bytes); in ArrayCoder() 101 return Arrays.copyOf(bytes, stream.getTotalBytesWritten()); in toByteArray() 137 byte[] bytes = new byte[dup.remaining()]; in toByteArray() 138 dup.get(bytes); in toByteArray() 139 return bytes; in toByteArray() 180 byte[] bytes = new byte[dup.remaining()]; in toByteArray() 181 dup.get(bytes); in toByteArray() 182 return bytes; in toByteArray() 715 private static byte[] bytes(int... bytesAsInts) { bytes() method in CodedOutputStreamTest 724 toList(byte[] bytes) toList() argument [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-ot-glyf-table.hh | 504 hb_bytes_t bytes; member 506 header (header_), bytes (bytes_) {} in SimpleGlyph() 517 if (unlikely (instruction_length_offset + 2 > bytes.length)) return 0; in instructions_length() 519 const HBUINT16 &instructionLength = StructAtOffset<HBUINT16> (&bytes, instruction_length_offset); in instructions_length() 521 if (unlikely (length (instructionLength) > bytes.length)) return 0; in instructions_length() 528 const uint8_t *glyph = (uint8_t*) bytes.arrayZ; in trim_padding() 529 const uint8_t *glyph_end = glyph + bytes.length; in trim_padding() 568 return Glyph (bytes.sub_array (0, bytes.length + coord_bytes - (glyph_end - glyph))); in trim_padding() 582 dest_start = bytes in drop_hints_bytes() 675 hb_bytes_t bytes; global() member 895 hb_bytes_t bytes; global() member [all...] |
/third_party/node/deps/v8/src/codegen/ |
H A D | source-position-table.cc | 25 // determines whether additional bytes follow. Additionally: 57 void EncodeInt(ZoneVector<byte>* bytes, T value) { in EncodeInt() argument 69 bytes->push_back(current); in EncodeInt() 75 void EncodeEntry(ZoneVector<byte>* bytes, const PositionTableEntry& entry) { in EncodeEntry() argument 81 // DCHECK_IMPLIES(!bytes->empty(), entry.code_offset > 0); in EncodeEntry() 83 EncodeInt(bytes, in EncodeEntry() 85 EncodeInt(bytes, entry.source_position); in EncodeEntry() 90 T DecodeInt(base::Vector<const byte> bytes, int* index) { in DecodeInt() argument 96 current = bytes[(*index)++]; in DecodeInt() 108 void DecodeEntry(base::Vector<const byte> bytes, in argument 253 SourcePositionTableIterator( base::Vector<const byte> bytes, IterationFilter iteration_filter, FunctionEntryFilter function_entry_filter) SourcePositionTableIterator() argument 267 base::Vector<const byte> bytes = Advance() local [all...] |
/third_party/alsa-utils/bat/ |
H A D | tinyalsa.c | 164 void *buffer, int bytes) in latencytest_process_output() 167 int frames = bytes / bat->frame_size; in latencytest_process_output() 175 err = handleoutput(bat, buffer, bytes, frames); in latencytest_process_output() 179 err = pcm_write(pcm, buffer, bytes); in latencytest_process_output() 198 void *buffer, int bytes) in play_sample() 201 int frames = bytes / bat->frame_size; in play_sample() 222 err = generate_input_data(bat, buffer, bytes, frames); in play_sample() 227 if (fwrite(buffer, 1, bytes, fp) != bytes) { in play_sample() 231 bytes_total += bytes; in play_sample() 163 latencytest_process_output(struct bat *bat, struct pcm *pcm, void *buffer, int bytes) latencytest_process_output() argument 197 play_sample(struct bat *bat, struct pcm *pcm, void *buffer, int bytes) play_sample() argument 384 capture_sample(struct bat *bat, struct pcm *pcm, void *buffer, unsigned int bytes) capture_sample() argument 429 latencytest_process_input(struct bat *bat, struct pcm *pcm, void *buffer, unsigned int bytes) latencytest_process_input() argument [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | bytestriebuilder.cpp | 31 * Note: This builder implementation stores (bytes, value) pairs with full copies 83 // If the stringOffset is negative, then the first two strings bytes contain 85 // (Compared with a stringLength field here, this saves 3 bytes per string for most strings.) 98 // Too long: We store the length in 1 or 2 bytes. in setTo() 131 bytes(NULL), bytesCapacity(0), bytesLength(0) { in BytesTrieBuilder() 144 uprv_free(bytes); in ~BytesTrieBuilder() 197 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); in build() 201 bytes=NULL; // The new trie now owns the array. in build() 213 result.set(bytes in buildStringPiece() 340 BTLinearMatchNode(const char *bytes, int32_t len, Node *nextNode) BTLinearMatchNode() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | bytestriebuilder.cpp | 31 * Note: This builder implementation stores (bytes, value) pairs with full copies 83 // If the stringOffset is negative, then the first two strings bytes contain 85 // (Compared with a stringLength field here, this saves 3 bytes per string for most strings.) 98 // Too long: We store the length in 1 or 2 bytes. in setTo() 131 bytes(nullptr), bytesCapacity(0), bytesLength(0) { in BytesTrieBuilder() 144 uprv_free(bytes); in ~BytesTrieBuilder() 197 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); in build() 201 bytes=nullptr; // The new trie now owns the array. in build() 213 result.set(bytes in buildStringPiece() 340 BTLinearMatchNode(const char *bytes, int32_t len, Node *nextNode) BTLinearMatchNode() argument [all...] |
/third_party/openssl/test/ |
H A D | packettest.c | 156 const unsigned char *bytes = NULL; in test_PACKET_get_bytes() local 160 || !TEST_true(PACKET_get_bytes(&pkt, &bytes, 4)) in test_PACKET_get_bytes() 161 || !TEST_uchar_eq(bytes[0], 2) in test_PACKET_get_bytes() 162 || !TEST_uchar_eq(bytes[1], 4) in test_PACKET_get_bytes() 163 || !TEST_uchar_eq(bytes[2], 6) in test_PACKET_get_bytes() 164 || !TEST_uchar_eq(bytes[3], 8) in test_PACKET_get_bytes() 167 || !TEST_true(PACKET_get_bytes(&pkt, &bytes, 4)) in test_PACKET_get_bytes() 168 || !TEST_uchar_eq(bytes[0], 0xf8) in test_PACKET_get_bytes() 169 || !TEST_uchar_eq(bytes[1], 0xfa) in test_PACKET_get_bytes() 170 || !TEST_uchar_eq(bytes[ in test_PACKET_get_bytes() 180 unsigned char bytes[4]; test_PACKET_copy_bytes() local [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | bytestriebuilder.cpp | 31 * Note: This builder implementation stores (bytes, value) pairs with full copies 83 // If the stringOffset is negative, then the first two strings bytes contain 85 // (Compared with a stringLength field here, this saves 3 bytes per string for most strings.) 98 // Too long: We store the length in 1 or 2 bytes. in setTo() 131 bytes(NULL), bytesCapacity(0), bytesLength(0) { in BytesTrieBuilder() 144 uprv_free(bytes); in ~BytesTrieBuilder() 197 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); in build() 201 bytes=NULL; // The new trie now owns the array. in build() 213 result.set(bytes in buildStringPiece() 340 BTLinearMatchNode(const char *bytes, int32_t len, Node *nextNode) BTLinearMatchNode() argument [all...] |
/third_party/lzma/CPP/7zip/UI/Console/ |
H A D | OpenCallbackConsole.cpp | 20 HRESULT COpenCallbackConsole::Open_SetTotal(const UInt64 *files, const UInt64 *bytes)
in Open_SetTotal() argument 33 if (bytes)
in Open_SetTotal() 36 _totalBytes = *bytes;
in Open_SetTotal() 38 _percent.Total = *bytes;
in Open_SetTotal() 51 HRESULT COpenCallbackConsole::Open_SetCompleted(const UInt64 *files, const UInt64 *bytes)
in Open_SetCompleted() argument 62 if (bytes)
in Open_SetCompleted() 65 _percent.Completed = *bytes;
in Open_SetCompleted()
|
/third_party/skia/third_party/externals/libwebp/src/webp/ |
H A D | mux_types.h | 58 // 'bytes' memory must be allocated using WebPMalloc() and such. 60 const uint8_t* bytes; member 75 WebPFree((void*)webp_data->bytes); in WebPDataClear() 85 if (src->bytes != NULL && src->size != 0) { in WebPDataCopy() 86 dst->bytes = (uint8_t*)WebPMalloc(src->size); in WebPDataCopy() 87 if (dst->bytes == NULL) return 0; in WebPDataCopy() 88 memcpy((void*)dst->bytes, src->bytes, src->size); in WebPDataCopy()
|
/third_party/skia/fuzz/oss_fuzz/ |
H A D | FuzzAndroidCodec.cpp | 16 bool FuzzAndroidCodec(sk_sp<SkData> bytes, uint8_t sampleSize) { in FuzzAndroidCodec() argument 17 auto codec = SkAndroidCodec::MakeFromData(bytes); in FuzzAndroidCodec() 58 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local 59 Fuzz fuzz(bytes); in LLVMFuzzerTestOneInput() 62 bytes = SkData::MakeSubset(bytes.get(), 1, size - 1); in LLVMFuzzerTestOneInput() 63 FuzzAndroidCodec(bytes, sampleSize); in LLVMFuzzerTestOneInput()
|
/third_party/rust/crates/aho-corasick/src/ |
H A D | prefilter.rs | 48 /// skipping past bytes in the haystack that we know cannot possibly 70 /// units of bytes. 144 /// prefilter. It is used to track how many bytes, on average, are skipped by 154 /// The total number of bytes that have been skipped. 157 /// bytes on average should be skipped in order for a prefilter to be 177 /// field at all, since it only looks for starting bytes.) 186 /// The minimum amount of bytes that skipping must average, expressed as a 189 /// That is, after MIN_SKIPS have occurred, if the average number of bytes 216 /// Update this state with the number of bytes skipped on the last 318 // of bytes tha in build() 439 let mut bytes = vec![]; fmt() variables [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/ |
H A D | ByteArray.cs | 48 /// Determines which copy routine to use based on the number of bytes to be copied.
67 /// Reverses the order of bytes in the array
69 internal static void Reverse(byte[] bytes)
in Reverse() argument 71 for (int first = 0, last = bytes.Length - 1; first < last; first++, last--)
in Reverse() 73 byte temp = bytes[first];
in Reverse() 74 bytes[first] = bytes[last];
in Reverse() 75 bytes[last] = temp;
in Reverse()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkMemory.cpp | 22 void *allocateDeviceMemory(size_t bytes, size_t alignment) in allocateDeviceMemory() argument 26 return sw::allocateZero(bytes, alignment); in allocateDeviceMemory() 29 return sw::allocateZeroOrPoison(bytes, alignment); in allocateDeviceMemory() 38 void *allocateHostMemory(size_t bytes, size_t alignment, const VkAllocationCallbacks *pAllocator, VkSystemAllocationScope allocationScope) in allocateHostMemory() argument 42 return pAllocator->pfnAllocation(pAllocator->pUserData, bytes, alignment, allocationScope); in allocateHostMemory() 47 return sw::allocateZeroOrPoison(bytes, alignment); in allocateHostMemory()
|
/third_party/node/deps/v8/src/zone/ |
H A D | accounting-allocator.cc | 85 Segment* AccountingAllocator::AllocateSegment(size_t bytes, in AllocateSegment() argument 89 bytes = RoundUp(bytes, kZonePageSize); in AllocateSegment() 90 memory = AllocatePages(bounded_page_allocator_.get(), nullptr, bytes, in AllocateSegment() 94 memory = AllocWithRetry(bytes, zone_backing_malloc_); in AllocateSegment() 99 current_memory_usage_.fetch_add(bytes, std::memory_order_relaxed) + bytes; in AllocateSegment() 105 DCHECK_LE(sizeof(Segment), bytes); in AllocateSegment() local 106 return new (memory) Segment(bytes); in AllocateSegment()
|
/third_party/node/deps/v8/src/strings/ |
H A D | string-stream.h | 26 // Allocate a number of bytes. 27 virtual char* allocate(unsigned bytes) = 0; 28 // Allocate a larger number of bytes and copy the old buffer to the new one. 29 // bytes is an input and output parameter passing the old size of the buffer 32 virtual char* grow(unsigned* bytes) = 0; 39 char* allocate(unsigned bytes) override; 40 char* grow(unsigned* bytes) override; 54 char* allocate(unsigned bytes) override; 55 char* grow(unsigned* bytes) override; 70 char* allocate(unsigned bytes) overrid [all...] |
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_att.c | 105 const void *bytes, int len) in CMS_signed_add1_attr_by_OBJ() 107 if (ossl_x509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ() 113 int nid, int type, const void *bytes, int len) in CMS_signed_add1_attr_by_NID() 115 if (ossl_x509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len)) in CMS_signed_add1_attr_by_NID() 122 const void *bytes, int len) in CMS_signed_add1_attr_by_txt() 124 if (ossl_x509at_add1_attr_by_txt(&si->signedAttrs, attrname, type, bytes, in CMS_signed_add1_attr_by_txt() 173 const void *bytes, int len) in CMS_unsigned_add1_attr_by_OBJ() 175 if (ossl_x509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ() 182 const void *bytes, int len) in CMS_unsigned_add1_attr_by_NID() 184 if (ossl_x509at_add1_attr_by_NID(&si->unsignedAttrs, nid, type, bytes, le in CMS_unsigned_add1_attr_by_NID() 103 CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *obj, int type, const void *bytes, int len) CMS_signed_add1_attr_by_OBJ() argument 112 CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si, int nid, int type, const void *bytes, int len) CMS_signed_add1_attr_by_NID() argument 120 CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si, const char *attrname, int type, const void *bytes, int len) CMS_signed_add1_attr_by_txt() argument 171 CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *obj, int type, const void *bytes, int len) CMS_unsigned_add1_attr_by_OBJ() argument 180 CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si, int nid, int type, const void *bytes, int len) CMS_unsigned_add1_attr_by_NID() argument 189 CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si, const char *attrname, int type, const void *bytes, int len) CMS_unsigned_add1_attr_by_txt() argument [all...] |