Searched defs:bytes (Results 501 - 525 of 1496) sorted by relevance

<<21222324252627282930>>

/external/skia/src/lazy/
H A DSkDiscardableMemoryPool.cpp33 std::unique_ptr<SkDiscardableMemory> make(size_t bytes);
34 SkDiscardableMemory* create(size_t bytes) override {
35 return this->make(bytes).release(); // TODO: change API
81 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes);
97 size_t bytes)
98 : fPool(std::move(pool)), fLocked(true), fPointer(std::move(pointer)), fBytes(bytes) {
166 std::unique_ptr<SkDiscardableMemory> DiscardableMemoryPool::make(size_t bytes) { argument
167 SkAutoFree addr(sk_malloc_canfail(bytes));
171 auto dm = skstd::make_unique<PoolDiscardableMemory>(sk_ref_sp(this), std::move(addr), bytes);
174 fUsed += bytes;
95 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes) argument
[all...]
/external/skia/tests/
H A DRecordDrawTest.cpp157 const size_t bytes = SK_ARRAY_COUNT(text); local
160 recorder.drawPosTextH(text, bytes, xpos, 30, SkPaint());
163 recorder.drawPosText(text, bytes, pos, SkPaint());
/external/skqp/src/android/
H A DSkBitmapRegionCodec.cpp99 size_t bytes = outInfo.computeByteSize(bitmap->rowBytes()); local
100 memset(pixels, 0, bytes);
/external/skqp/src/core/
H A DSkWriteBuffer.h28 virtual void writePad32(const void* buffer, size_t bytes) = 0;
82 void write(const void* buffer, size_t bytes) { argument
83 fWriter.write(buffer, bytes);
85 void writePad32(const void* buffer, size_t bytes) override {
86 fWriter.writePad(buffer, bytes);
/external/skqp/src/lazy/
H A DSkDiscardableMemoryPool.cpp33 std::unique_ptr<SkDiscardableMemory> make(size_t bytes);
34 SkDiscardableMemory* create(size_t bytes) override {
35 return this->make(bytes).release(); // TODO: change API
81 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes);
97 size_t bytes)
98 : fPool(std::move(pool)), fLocked(true), fPointer(std::move(pointer)), fBytes(bytes) {
166 std::unique_ptr<SkDiscardableMemory> DiscardableMemoryPool::make(size_t bytes) { argument
167 SkAutoFree addr(sk_malloc_canfail(bytes));
171 auto dm = skstd::make_unique<PoolDiscardableMemory>(sk_ref_sp(this), std::move(addr), bytes);
174 fUsed += bytes;
95 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes) argument
[all...]
/external/skqp/tests/
H A DRecordDrawTest.cpp157 const size_t bytes = SK_ARRAY_COUNT(text); local
160 recorder.drawPosTextH(text, bytes, xpos, 30, SkPaint());
163 recorder.drawPosText(text, bytes, pos, SkPaint());
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
H A DPrimitiveArrayTest.java32 private final byte[] bytes = new byte[] { 1, 2, 3 }; field in class:PrimitiveArrayTest
42 String testInput = "- " + pkg + ".ByteArr [ " + Arrays.toString(bytes) + " ]\n" + "- "
54 Assert.assertArrayEquals(bytes, ((ByteArr) wrappers.get(0)).getBytes());
157 ByteArr byteArr = new ByteArr(bytes);
/external/squashfs-tools/kernel/fs/squashfs/
H A Dcache.c290 * Copy upto length bytes from cache entry to buffer starting at offset bytes
291 * into the cache entry. If there's not length bytes then copy the number of
292 * bytes available. In all cases return the number of bytes copied.
307 int bytes = min_t(int, entry->length - offset, local
310 if (bytes >= remaining) {
316 memcpy(buffer, buff, bytes);
317 buffer += bytes;
318 remaining -= bytes;
336 int bytes, copied = length; local
[all...]
/external/squashfs-tools/squashfs-tools/
H A Dgzip_wrapper.c457 unsigned long bytes = outsize; local
459 res = uncompress(d, &bytes, s, size);
462 return (int) bytes;
H A Dunsquash-1.c61 int bytes = lookup_entry(inode_table_hash, start); local
62 char *block_ptr = inode_table + bytes + offset;
67 if(bytes == -1)
212 int bytes; local
245 bytes = lookup_entry(directory_table_hash, start);
246 if(bytes == -1)
250 bytes += (*i)->offset;
251 size = (*i)->data + bytes;
253 while(bytes < size) {
256 memcpy(&sdirh, directory_table + bytes, sizeo
[all...]
H A Dunsquash-2.c46 int bytes = SQUASHFS_FRAGMENT_BYTES_2(sBlk.s.fragments); local
59 fragment_table = malloc(bytes);
90 bytes & (SQUASHFS_METADATA_SIZE - 1);
132 int bytes = lookup_entry(inode_table_hash, start); local
133 char *block_ptr = inode_table + bytes + offset;
138 if(bytes == -1)
H A Dunsquash-3.c33 int bytes = SQUASHFS_FRAGMENT_BYTES_3(sBlk.s.fragments); local
46 fragment_table = malloc(bytes);
77 bytes & (SQUASHFS_METADATA_SIZE - 1);
119 int bytes = lookup_entry(inode_table_hash, start); local
120 char *block_ptr = inode_table + bytes + offset;
125 if(bytes == -1)
289 int bytes; local
322 bytes = lookup_entry(directory_table_hash, start);
324 if(bytes == -1)
328 bytes
[all...]
H A Dunsquash-4.c34 int bytes = SQUASHFS_FRAGMENT_BYTES(sBlk.s.fragments); local
47 fragment_table = malloc(bytes);
64 bytes & (SQUASHFS_METADATA_SIZE - 1);
101 int bytes = lookup_entry(inode_table_hash, start); local
102 char *block_ptr = inode_table + bytes + offset;
107 if(bytes == -1)
258 int bytes; local
291 bytes = lookup_entry(directory_table_hash, start);
293 if(bytes == -1)
297 bytes
357 int bytes = SQUASHFS_ID_BYTES(sBlk.s.no_ids); local
[all...]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DStringRef.h113 iterator_range<const unsigned char *> bytes() const { function in class:llvm::StringRef
/external/syslinux/com32/lib/syslinux/
H A Dinitramfs_file.c61 Returns the number of bytes; doesn't touch the buffer if too small. */
68 size_t bytes = 0, hdr_sz; local
74 bytes += ((sizeof(struct cpio_header) + len + 1) + 3) & ~3;
79 if (buflen >= bytes) {
98 return bytes;
109 size_t bytes, hdr_sz; local
115 bytes = initramfs_mkdirs(filename, NULL, 0);
117 bytes = 0;
120 bytes += hdr_sz;
122 bp = buffer = malloc(bytes);
[all...]
/external/syslinux/com32/modules/
H A Delf.c210 int bytes = strlen(*argp) + 1; /* Including final null */ local
212 memcpy(sfp, *argp, bytes);
213 sfp += bytes;
214 sfa += bytes;
/external/syslinux/core/legacynet/
H A Dcore.c90 uint16_t bytes; local
106 bytes = min(udp_read.buffer_size, *buf_len);
107 memcpy(buf, packet_buf, bytes);
111 *buf_len = bytes;
/external/syslinux/efi/
H A Dvesa.c252 * whereas BIOS code simply allocates hres * vres bytes.
276 size_t bytes, struct win_info *wi)
285 memcpy(win_base + win_off, s, bytes);
275 efi_vesacon_screencpy(size_t dst, const uint32_t *s, size_t bytes, struct win_info *wi) argument
/external/syslinux/gpxe/src/core/
H A Ddebug.c29 const uint8_t *bytes = data; local
40 ( ( ( i % 16 ) == 8 ) ? '-' : ' ' ), bytes[i] );
48 byte = bytes[i];
/external/syslinux/gpxe/src/net/
H A Dipv6.c306 DBG ( "Packet too short (%zd bytes)\n", iob_len ( iobuf ) );
323 DBG ( "Inconsistent packet length (%d bytes)\n",
357 uint16_t *bytes = ( uint16_t* ) &in6; local
358 sprintf ( buf, "%x:%x:%x:%x:%x:%x:%x:%x", bytes[0], bytes[1], bytes[2],
359 bytes[3], bytes[4], bytes[5], bytes[
[all...]
/external/tcpdump/
H A Dprint-medsa.c49 u_char bytes[6]; member in struct:medsa_pkthdr
54 #define TAG(medsa) (medsa->bytes[2] >> 6)
58 #define SRC_TAG(medsa) ((medsa->bytes[2] >> 5) & 0x01)
59 #define SRC_DEV(medsa) (medsa->bytes[2] & 0x1f)
60 #define SRC_PORT(medsa) ((medsa->bytes[3] >> 3) & 0x01f)
61 #define TRUNK(medsa) ((medsa->bytes[3] >> 2) & 0x01)
62 #define CODE(medsa) ((medsa->bytes[3] & 0x06) | \
63 ((medsa->bytes[4] >> 4) & 0x01))
67 #define CFI(medsa) (medsa->bytes[3] & 0x01)
68 #define PRI(medsa) (medsa->bytes[
[all...]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
H A Dfusion_merger.cc45 // Returns the bytes read by fusion parameter 'param', by returning the byte
51 // value for bytes read.
63 // Slice for a more accurate estimate of bytes read.
64 double bytes = 0.0; local
71 // All users are slice: accumulate bytes of all user slice instructions.
73 bytes += ShapeUtil::ByteSizeOf(user->shape());
77 bytes += ShapeUtil::ByteSizeOf(instruction->shape());
80 return bytes;
83 // Returns the bytes read by all fusion parameters of instruction 'fusion'.
85 double bytes local
99 double bytes = CalculateBytesReadByFusionInstruction(fusion); local
[all...]
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
H A Dgrpc_tensor_coding.cc72 static int VarLengthEncodingSize(uint32 tag, size_t bytes) { argument
73 return core::VarintLength(tag << 3) + core::VarintLength(bytes) + bytes;
76 // Returns an upper bound in bytes of the protocol buffer encoding of
/external/tensorflow/tensorflow/core/framework/
H A Dallocator_test.cc180 int bytes = sizes[size_index++ % sizes.size()]; local
181 void* p = a->AllocateRaw(1, bytes);
/external/tensorflow/tensorflow/core/kernels/
H A Dcuda_solvers.h362 int64 bytes() const { return scratch_tensor_.TotalBytes(); } function in class:tensorflow::ScratchSpace
404 stream->ThenMemcpy(copy.mutable_data(), wrapped_src, this->bytes())

Completed in 580 milliseconds

<<21222324252627282930>>