Home
last modified time | relevance | path

Searched refs:bytes (Results 176 - 200 of 2550) sorted by relevance

12345678910>>...102

/third_party/protobuf/js/experimental/runtime/kernel/
H A Dkernel.js166 * Creates a new bytes array to contain all data of a submessage.
345 * Create a Kernel for the given binary bytes.
346 * The bytes array is kept by the Kernel. DON'T MODIFY IT.
347 * @param {!ArrayBuffer} arrayBuffer Binary bytes.
378 * Create a Kernel for the given binary bytes.
379 * The bytes array is kept by the Kernel. DON'T MODIFY IT.
380 * @param {!BufferDecoder} bufferDecoder Binary bytes.
390 * @param {?BufferDecoder} bufferDecoder Binary bytes. Accessor treats the
391 * bytes as immutable and will never attempt to write to it.
476 * Serializes internal contents to binary format bytes arra
[all...]
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/utils/
H A Doid.js11 const bytes = encodeVariableLengthInteger(parseInt(part, 10));
12 rest.push(...bytes);
19 const bytes = [];
22 bytes.unshift((value & 0x7f) | mask);
26 return bytes;
/third_party/protobuf/csharp/src/AddressBook/
H A DSampleUsage.cs42 byte[] bytes; in Main()
55 bytes = stream.ToArray(); in Main()
57 Person copy = Person.Parser.ParseFrom(bytes); in Main()
63 bytes = book.ToByteArray(); in Main()
65 AddressBook restored = AddressBook.Parser.ParseFrom(bytes); in Main()
/third_party/skia/fuzz/oss_fuzz/
H A DFuzzSKSL2Metal.cpp13 bool FuzzSKSL2Metal(sk_sp<SkData> bytes) { in FuzzSKSL2Metal() argument
20 SkSL::String((const char*) bytes->data(), in FuzzSKSL2Metal()
21 bytes->size()), in FuzzSKSL2Metal()
34 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local
35 FuzzSKSL2Metal(bytes); in LLVMFuzzerTestOneInput()
H A DFuzzSKSL2GLSL.cpp13 bool FuzzSKSL2GLSL(sk_sp<SkData> bytes) { in FuzzSKSL2GLSL() argument
20 SkSL::String((const char*) bytes->data(), in FuzzSKSL2GLSL()
21 bytes->size()), in FuzzSKSL2GLSL()
34 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local
35 FuzzSKSL2GLSL(bytes); in LLVMFuzzerTestOneInput()
H A DFuzzSKP.cpp16 void FuzzSKP(sk_sp<SkData> bytes) { in FuzzSKP() argument
17 sk_sp<SkPicture> pic = SkPicture::MakeFromData(bytes->data(), bytes->size()); in FuzzSKP()
32 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local
33 FuzzSKP(bytes); in LLVMFuzzerTestOneInput()
H A DFuzzImageFilterDeserialize.cpp18 void FuzzImageFilterDeserialize(sk_sp<SkData> bytes) { in FuzzImageFilterDeserialize() argument
25 auto flattenable = SkImageFilter::Deserialize(bytes->data(), bytes->size()); in FuzzImageFilterDeserialize()
49 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local
50 FuzzImageFilterDeserialize(bytes); in LLVMFuzzerTestOneInput()
H A DFuzzRegionDeserialize.cpp14 bool FuzzRegionDeserialize(sk_sp<SkData> bytes) { in FuzzRegionDeserialize() argument
16 if (!region.readFromMemory(bytes->data(), bytes->size())) { in FuzzRegionDeserialize()
43 auto bytes = SkData::MakeWithoutCopy(data, size); in LLVMFuzzerTestOneInput() local
44 FuzzRegionDeserialize(bytes); in LLVMFuzzerTestOneInput()
/third_party/rust/crates/rustix/examples/
H A Dhello.rs9 // The bytes to print. The `write` syscall operates on byte buffers and in main()
10 // returns a byte offset if it writes fewer bytes than requested, so we in main()
12 let mut bytes = message.as_bytes(); in main() variables
21 while !bytes.is_empty() { in main()
22 match rustix::io::write(&stdout, bytes) { in main()
23 // `write` can write fewer bytes than requested. In that case, in main()
24 // continue writing with the remainder of the bytes. in main()
25 Ok(n) => bytes = &bytes[n..], in main()
/third_party/icu/icu4c/source/tools/toolutil/
H A Ducm.h43 * b if bLen<=4: up to 4 bytes
44 * else index to bLen bytes
46 * bLen number of words containing left-justified bytes
47 * bIsMultipleChars indicates that the bytes contain more than one sequence
57 uint8_t bytes[4]; member
77 uint8_t *bytes; member
80 /* index map for mapping by bytes first */
117 (((m)->bLen<=4) ? (m)->b.bytes : (t)->bytes+(m)->b.idx)
131 /* @return -1 illegal bytes
[all...]
/third_party/node/deps/icu-small/source/tools/toolutil/
H A Ducm.h43 * b if bLen<=4: up to 4 bytes
44 * else index to bLen bytes
46 * bLen number of words containing left-justified bytes
47 * bIsMultipleChars indicates that the bytes contain more than one sequence
57 uint8_t bytes[4]; member
77 uint8_t *bytes; member
80 /* index map for mapping by bytes first */
117 (((m)->bLen<=4) ? (m)->b.bytes : (t)->bytes+(m)->b.idx)
131 /* @return -1 illegal bytes
[all...]
/third_party/node/deps/openssl/openssl/crypto/rand/
H A Drandfile.c81 * devices and EGD sockets are handled in rand_unix.c If |bytes| is
84 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument
88 * of 'RAND_DRBG_STRENGTH' bytes (not bits!). This is done on purpose in RAND_load_file()
102 if (bytes == 0) in RAND_load_file()
119 if (bytes < 0) { in RAND_load_file()
121 bytes = sb.st_size; in RAND_load_file()
123 bytes = RAND_DRBG_STRENGTH; in RAND_load_file()
148 if (bytes > 0) in RAND_load_file()
149 n = (bytes <= RAND_LOAD_BUF_SIZE) ? (int)bytes in RAND_load_file()
[all...]
/third_party/openssl/crypto/rand/
H A Drandfile.c82 * devices and EGD sockets are handled in rand_unix.c If |bytes| is
85 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument
89 * of 'RAND_DRBG_STRENGTH' bytes (not bits!). This is done on purpose in RAND_load_file()
103 if (bytes == 0) in RAND_load_file()
120 if (bytes < 0) { in RAND_load_file()
122 bytes = sb.st_size; in RAND_load_file()
124 bytes = RAND_DRBG_STRENGTH; in RAND_load_file()
149 if (bytes > 0) in RAND_load_file()
150 n = (bytes <= RAND_LOAD_BUF_SIZE) ? (int)bytes in RAND_load_file()
[all...]
/third_party/skia/src/lazy/
H A DSkDiscardableMemoryPool.cpp32 std::unique_ptr<SkDiscardableMemory> make(size_t bytes);
33 SkDiscardableMemory* create(size_t bytes) override {
34 return this->make(bytes).release(); // TODO: change API
80 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes);
96 size_t bytes) in PoolDiscardableMemory()
97 : fPool(std::move(pool)), fLocked(true), fPointer(std::move(pointer)), fBytes(bytes) { in PoolDiscardableMemory()
165 std::unique_ptr<SkDiscardableMemory> DiscardableMemoryPool::make(size_t bytes) { in make() argument
166 SkAutoFree addr(sk_malloc_canfail(bytes)); in make()
170 auto dm = std::make_unique<PoolDiscardableMemory>(sk_ref_sp(this), std::move(addr), bytes); in make()
173 fUsed += bytes; in make()
94 PoolDiscardableMemory(sk_sp<DiscardableMemoryPool> pool, SkAutoFree pointer, size_t bytes) PoolDiscardableMemory() argument
[all...]
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
H A Ducm.h43 * b if bLen<=4: up to 4 bytes
44 * else index to bLen bytes
46 * bLen number of words containing left-justified bytes
47 * bIsMultipleChars indicates that the bytes contain more than one sequence
57 uint8_t bytes[4]; member
77 uint8_t *bytes; member
80 /* index map for mapping by bytes first */
117 (((m)->bLen<=4) ? (m)->b.bytes : (t)->bytes+(m)->b.idx)
131 /* @return -1 illegal bytes
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsBufferTestUtil.hpp91 void setData (int numBytes, const deUint8* bytes);
92 void setSubData (int offset, int numBytes, const deUint8* bytes);
123 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) = DE_NULL;
124 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint);
142 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes);
143 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint);
160 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes);
161 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 target);
172 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes);
173 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint3
[all...]
/third_party/node/deps/openssl/openssl/include/internal/
H A Dpacket.h25 /* Number of bytes remaining */
37 * Returns the number of bytes remaining to be read in the PACKET
65 * Initialise a PACKET with |len| bytes held in |buf|. This does not make a
82 /* Initialize a PACKET to hold zero bytes. */
91 * bytes read from |ptr|. Returns 0 otherwise (lengths or contents not equal).
103 * Peek ahead and initialize |subpkt| with the next |len| bytes read from |pkt|.
117 * Initialize |subpkt| with the next |len| bytes read from |pkt|. Data is not
133 * Peek ahead at 2 bytes in network order from |pkt| and store the value in
149 /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
173 * Peek ahead at 3 bytes i
[all...]
/third_party/protobuf/conformance/
H A DConformanceJava.java102 public MessageType decode (ByteString bytes, BinaryDecoderType type, in decode() argument
107 return parser.parseFrom(bytes, extensions); in decode()
109 return parser.parseFrom(bytes.toByteArray(), extensions); in decode()
111 ByteBuffer buffer = ByteBuffer.allocate(bytes.size()); in decode()
112 bytes.copyTo(buffer); in decode()
123 CodedInputStream.newInstance(bytes.asReadOnlyByteBuffer()), extensions); in decode()
129 ByteBuffer buffer = ByteBuffer.allocateDirect(bytes.size()); in decode()
130 bytes.copyTo(buffer); in decode()
139 ByteBuffer buffer = ByteBuffer.allocateDirect(bytes.size()); in decode()
140 bytes in decode()
162 parseBinary( ByteString bytes, Parser <MessageType> parser, ExtensionRegistry extensions) parseBinary() argument
[all...]
/third_party/openssl/include/internal/
H A Dpacket.h25 /* Number of bytes remaining */
37 * Returns the number of bytes remaining to be read in the PACKET
65 * Initialise a PACKET with |len| bytes held in |buf|. This does not make a
82 /* Initialize a PACKET to hold zero bytes. */
91 * bytes read from |ptr|. Returns 0 otherwise (lengths or contents not equal).
103 * Peek ahead and initialize |subpkt| with the next |len| bytes read from |pkt|.
117 * Initialize |subpkt| with the next |len| bytes read from |pkt|. Data is not
133 * Peek ahead at 2 bytes in network order from |pkt| and store the value in
149 /* Get 2 bytes in network order from |pkt| and store the value in |*data| */
173 * Peek ahead at 3 bytes i
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/breakiter/
H A DDictionaryData.java50 ByteBuffer bytes = ICUBinary.getRequiredData(dictFileName); in loadDictionaryFor()
51 ICUBinary.readHeader(bytes, DATA_FORMAT_ID, null); in loadDictionaryFor()
55 indexes[i] = bytes.getInt(); in loadDictionaryFor()
61 ICUBinary.skipBytes(bytes, diff); in loadDictionaryFor()
69 bytes.get(data); in loadDictionaryFor()
73 String data = ICUBinary.getString(bytes, totalSize / 2, totalSize & 1); in loadDictionaryFor()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DDictionaryData.java51 ByteBuffer bytes = ICUBinary.getRequiredData(dictFileName); in loadDictionaryFor()
52 ICUBinary.readHeader(bytes, DATA_FORMAT_ID, null); in loadDictionaryFor()
56 indexes[i] = bytes.getInt(); in loadDictionaryFor()
62 ICUBinary.skipBytes(bytes, diff); in loadDictionaryFor()
70 bytes.get(data); in loadDictionaryFor()
74 String data = ICUBinary.getString(bytes, totalSize / 2, totalSize & 1); in loadDictionaryFor()
/third_party/node/deps/v8/src/heap/
H A Dlinear-allocation-area.h37 V8_INLINE bool CanIncrementTop(size_t bytes) { in CanIncrementTop() argument
39 return (top_ + bytes) <= limit_; in CanIncrementTop()
42 V8_INLINE Address IncrementTop(size_t bytes) { in IncrementTop() argument
44 top_ += bytes; in IncrementTop()
49 V8_INLINE bool DecrementTopIfAdjacent(Address new_top, size_t bytes) { in DecrementTopIfAdjacent() argument
51 if ((new_top + bytes) == top_) { in DecrementTopIfAdjacent()
/third_party/skia/tools/
H A DProcStats.cpp33 return ru.ru_maxrss; // Darwin reports bytes. in getMaxResidentSetSizeBytes()
88 int64_t bytes = sk_tools::getMaxResidentSetSizeBytes(); in getMaxResidentSetSizeMB() local
89 return bytes < 0 ? -1 : static_cast<int>(bytes / 1024 / 1024); in getMaxResidentSetSizeMB()
93 int64_t bytes = sk_tools::getCurrResidentSetSizeBytes(); in getCurrResidentSetSizeMB() local
94 return bytes < 0 ? -1 : static_cast<int>(bytes / 1024 / 1024); in getCurrResidentSetSizeMB()
/third_party/rust/crates/memchr/bench/src/memchr/
H A Dinputs.rs4 /// The bytes to search.
6 /// Distinct bytes that never occur in the input.
8 /// Distinct bytes that occur very rarely (<0.1%).
10 /// Distinct bytes that are uncommon (~1%).
12 /// Distinct bytes that are common (~5%).
14 /// Distinct bytes that are very common (~10%).
16 /// Distinct bytes that are super common (>90%).
109 /// Return all of this input's "never" bytes only if there are at least
120 self.never(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in never1()
[all...]
/third_party/skia/third_party/externals/libwebp/imageio/
H A Dmetadata.c27 free(payload->bytes); in MetadataPayloadDelete()
28 payload->bytes = NULL; in MetadataPayloadDelete()
42 payload->bytes = (uint8_t*)malloc(metadata_len); in MetadataCopy()
43 if (payload->bytes == NULL) return 0; in MetadataCopy()
45 memcpy(payload->bytes, metadata, metadata_len); in MetadataCopy()

Completed in 11 milliseconds

12345678910>>...102