| /external/angle/src/common/spirv/ |
| D | spirv_instruction_builder_autogen.cpp | 46 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t version, uint32_t idCount) in WriteSpirvHeader() argument 60 ASSERT(blob->empty()); in WriteSpirvHeader() 62 blob->push_back(spv::MagicNumber); in WriteSpirvHeader() 63 blob->push_back(version); in WriteSpirvHeader() 64 blob->push_back(kANGLEGeneratorId << 16 | kANGLEGeneratorVersion); in WriteSpirvHeader() 65 blob->push_back(idCount); in WriteSpirvHeader() 66 blob->push_back(0x00000000); in WriteSpirvHeader() 69 void WriteNop(Blob *blob) in WriteNop() argument 71 const size_t startSize = blob->size(); in WriteNop() 72 blob->push_back(0); in WriteNop() [all …]
|
| D | spirv_instruction_builder_autogen.h | 23 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t version, uint32_t idCount); 24 void WriteNop(Blob *blob); 25 void WriteUndef(Blob *blob, IdResultType idResultType1, IdResult idResult2); 26 void WriteSourceContinued(Blob *blob, LiteralString continuedSource); 27 void WriteSource(Blob *blob, 32 void WriteSourceExtension(Blob *blob, LiteralString extension); 33 void WriteName(Blob *blob, IdRef target, LiteralString name); 34 void WriteMemberName(Blob *blob, IdRef type, LiteralInteger member, LiteralString name); 35 void WriteString(Blob *blob, IdResult idResult1, LiteralString string); 36 void WriteLine(Blob *blob, IdRef file, LiteralInteger line, LiteralInteger column); [all …]
|
| /external/mesa3d/src/util/ |
| D | blob.c | 26 #include "blob.h" 39 /* Ensure that \blob will be able to fit an additional object of size 44 grow_to_fit(struct blob *blob, size_t additional) in grow_to_fit() argument 49 if (blob->out_of_memory) in grow_to_fit() 52 if (blob->size + additional <= blob->allocated) in grow_to_fit() 55 if (blob->fixed_allocation) { in grow_to_fit() 56 blob->out_of_memory = true; in grow_to_fit() 60 if (blob->allocated == 0) in grow_to_fit() 63 to_allocate = blob->allocated * 2; in grow_to_fit() 65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit() [all …]
|
| D | blob.h | 36 /* The blob functions implement a simple, low-level API for serializing and 39 * All objects written to a blob will be serialized directly, (without any 42 * by knowing exactly what data is expected, or by writing to the blob 45 * A blob is efficient in that it dynamically grows by doubling in size, so 49 struct blob { struct 50 /* The data actually written to the blob. Never read or write this directly 70 * allocation blob. argument 78 * 1. blob->current should be equal to blob->end, (if not, too little was argument 81 * 2. blob->overrun should be false, (otherwise, too much was read). 91 * Init a new, empty blob. [all …]
|
| /external/vboot_reference/tests/futility/ |
| D | test_gbb_utility.sh | 18 "${FUTILITY}" gbb -c 16,0x10,16,0x10 "${TMP}.blob" 21 "${FUTILITY}" gbb -s --flags=0xdeadbeef "${TMP}.blob" 22 "${FUTILITY}" gbb -g --flags "${TMP}.blob" | grep -i 0xdeadbeef 25 if "${FUTILITY}" gbb -s --hwid="0123456789ABCDEF" "${TMP}.blob"; then 29 "${FUTILITY}" gbb -s --hwid="0123456789ABCDE" "${TMP}.blob" 31 "${FUTILITY}" gbb -g "${TMP}.blob" | grep "0123456789ABCDE" 38 if "${FUTILITY}" gbb -s --rootkey "${TMP}.data1.toolong" "${TMP}.blob"; 40 if "${FUTILITY}" gbb -s --recoverykey "${TMP}.data2.toolong" "${TMP}.blob"; 48 --recoverykey "${TMP}.data2.short" "${TMP}.blob" 52 --recoverykey "${TMP}.read2" "${TMP}.blob" [all …]
|
| /external/javasqlite/src/main/java/SQLite/ |
| D | Blob.java | 7 * SQLite 3.4.0 incremental blob I/O interface. 13 * Blob instance 16 private Blob blob; field in BlobR 25 * Contruct InputStream from blob instance. 28 BlobR(Blob blob) { in BlobR() argument 29 this.blob = blob; in BlobR() 39 int ret = blob.size - pos; in available() 67 * Close this blob InputStream. 71 blob.close(); in close() 72 blob = null; in close() [all …]
|
| /external/harfbuzz_ng/src/ |
| D | hb-blob.cc | 29 #include "hb-blob.hh" 40 * SECTION: hb-blob 41 * @title: hb-blob 54 * @data: Pointer to blob data. 60 * Creates a new "blob" object wrapping @data. The @mode parameter is used 63 * Return value: New blob, or the empty blob if something failed or if @length is 82 hb_blob_t *blob = hb_blob_create_or_fail (data, length, mode, in hb_blob_create() local 84 return likely (blob) ? blob : hb_blob_get_empty (); in hb_blob_create() 89 * @data: Pointer to blob data. 95 * Creates a new "blob" object wrapping @data. The @mode parameter is used [all …]
|
| /external/mesa3d/src/util/tests/ |
| D | blob_test.cpp | 35 #include "blob.h" 58 struct blob blob; in TEST() local 64 blob_init(&blob); in TEST() 66 // Test blob by writing one of every possible kind of value. in TEST() 68 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in TEST() 70 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in TEST() 71 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in TEST() 74 str_offset = blob.size; in TEST() 75 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in TEST() 77 blob_write_uint32(&blob, uint32_test); in TEST() [all …]
|
| /external/rust/android-crates-io/crates/rusqlite/src/blob/ |
| D | mod.rs | 1 //! Incremental BLOB I/O. 4 //! BLOB; that must be performed through SQL statements. 6 //! There are two choices for how to perform IO on a [`Blob`]. 11 //! 2. A positional IO API, e.g. [`Blob::read_at`], [`Blob::write_at`] and 18 //! `Blob` conforms to `std::io::Read`, `std::io::Write`, and `std::io::Seek`, 21 //! with the size of the blob. For example, when using a `BufWriter`, the 22 //! `BufWriter` will accept more data than the `Blob` will allow, so make sure 28 //! `Blob`s also offer a `pread` / `pwrite`-style positional IO api in the form 29 //! of [`Blob::read_at`], [`Blob::write_at`], [`Blob::raw_read_at`], 30 //! [`Blob::read_at_exact`], and [`Blob::raw_read_at_exact`]. [all …]
|
| /external/skia/src/text/gpu/ |
| D | TextBlobRedrawCoordinator.cpp | 45 sk_sp<TextBlob> blob = this->findOrCreateBlob(viewMatrix, glyphRunList, paint, in drawGlyphRunList() local 48 blob->draw(canvas, glyphRunList.origin(), paint, atlasDelegate); in drawGlyphRunList() 60 sk_sp<TextBlob> blob; in findOrCreateBlob() local 62 blob = this->find(key); in findOrCreateBlob() 65 if (blob == nullptr || !blob->canReuse(paint, positionMatrix)) { in findOrCreateBlob() 66 if (blob != nullptr) { in findOrCreateBlob() 67 // We have to remake the blob because changes may invalidate our masks. in findOrCreateBlob() 68 this->remove(blob.get()); in findOrCreateBlob() 71 blob = TextBlob::Make( in findOrCreateBlob() 76 blob->addKey(key); in findOrCreateBlob() [all …]
|
| /external/libbrillo/brillo/ |
| D | secure_blob_test.cc | 26 const Blob blob(std::begin(kTestBytes), std::end(kTestBytes)); in TEST() local 27 const string obtained_string = BlobToString(blob); in TEST() 30 const Blob obtained_blob = BlobFromString(obtained_string); in TEST() 31 EXPECT_EQ(blob, obtained_blob); in TEST() 36 const Blob kEmpty; in TEST() 37 const Blob kBlob1 = {1}; in TEST() 38 const Blob kBlob2 = {2}; in TEST() 39 const Blob kBlob3 = {3}; in TEST() 40 const Blob kBlob12 = {1, 2}; in TEST() 41 const Blob kBlob123 = {1, 2, 3}; in TEST() [all …]
|
| /external/mesa3d/src/freedreno/ir3/ |
| D | ir3_disk_cache.c | 62 /* Serialize the NIR to a binary blob that we can hash for the disk in ir3_disk_cache_init_shader_key() 67 struct blob blob; in ir3_disk_cache_init_shader_key() local 68 blob_init(&blob); in ir3_disk_cache_init_shader_key() 69 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key() 70 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key() 71 blob_finish(&blob); in ir3_disk_cache_init_shader_key() 93 struct blob blob; in compute_variant_key() local 94 blob_init(&blob); in compute_variant_key() 96 blob_write_bytes(&blob, &shader->cache_key, sizeof(shader->cache_key)); in compute_variant_key() 97 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() [all …]
|
| /external/icing/icing/store/ |
| D | blob-store.h | 30 #include "icing/proto/blob.pb.h" 43 // A blob is a file that is stored in the BlobStore. A blob is identified by 44 // a blob handle, which is a unique identifier for the blob. 46 // Any blob that is written to the BlobStore must be committed before it can be 47 // read. A blob can be committed only once. After a blob is committed, it is 53 // Builds a string representation of a blob handle. 59 // used to persist blobs. If a blob store was previously created with 73 // Gets or creates a file for write only purpose for the given blob handle. 74 // To mark the blob is completed written, CommitBlob must be called. Once 75 // CommitBlob is called, the blob is sealed and rewrite is not allowed. [all …]
|
| /external/mesa3d/src/gallium/drivers/etnaviv/ |
| D | etnaviv_disk_cache.c | 63 /* Serialize the NIR to a binary blob that we can hash for the disk in etna_disk_cache_init_shader_key() 68 struct blob blob; in etna_disk_cache_init_shader_key() local 70 blob_init(&blob); in etna_disk_cache_init_shader_key() 71 nir_serialize(&blob, shader->nir, true); in etna_disk_cache_init_shader_key() 72 _mesa_sha1_update(&ctx, blob.data, blob.size); in etna_disk_cache_init_shader_key() 73 blob_finish(&blob); in etna_disk_cache_init_shader_key() 82 struct blob blob; in compute_variant_key() local 84 blob_init(&blob); in compute_variant_key() 86 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key() 87 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() [all …]
|
| /external/mesa3d/src/gallium/drivers/asahi/ |
| D | agx_disk_cache.c | 13 #include "util/blob.h" 59 write_shader(struct blob *blob, const struct agx_compiled_shader *binary, in write_shader() argument 62 blob_write_bytes(blob, &binary->b.info, sizeof(binary->b.info)); in write_shader() 65 blob_write_bytes(blob, binary->b.binary, binary->b.info.binary_size); in write_shader() 68 blob_write_bytes(blob, &binary->uvs, sizeof(binary->uvs)); in write_shader() 69 blob_write_bytes(blob, &binary->attrib_components_read, in write_shader() 71 blob_write_bytes(blob, &binary->epilog_key, sizeof(binary->epilog_key)); in write_shader() 72 blob_write_uint32(blob, binary->push_range_count); in write_shader() 73 blob_write_bytes(blob, binary->push, in write_shader() 77 blob_write_uint32(blob, binary->gs_count_words); in write_shader() [all …]
|
| /external/mesa3d/src/nouveau/codegen/ |
| D | nv50_ir_serialize.cpp | 1 #include "util/blob.h" 21 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) in nv50_ir_prog_info_serialize() argument 23 blob_write_uint32(blob, info->bin.smemSize); in nv50_ir_prog_info_serialize() 24 blob_write_uint16(blob, info->target); in nv50_ir_prog_info_serialize() 25 blob_write_uint8(blob, info->type); in nv50_ir_prog_info_serialize() 26 blob_write_uint8(blob, info->optLevel); in nv50_ir_prog_info_serialize() 27 blob_write_uint8(blob, info->dbgFlags); in nv50_ir_prog_info_serialize() 28 blob_write_uint8(blob, info->omitLineNum); in nv50_ir_prog_info_serialize() 30 nir_serialize(blob, info->bin.nir, true); in nv50_ir_prog_info_serialize() 33 blob_write_bytes(blob, &info->prop.cp, sizeof(info->prop.cp)); in nv50_ir_prog_info_serialize() [all …]
|
| /external/pytorch/test/expect/ |
| D | TestTensorBoard.test_caffe2_simple_model.expect | 583 op: "Blob" 589 op: "Blob" 595 op: "Blob" 601 op: "Blob" 607 op: "Blob" 613 op: "Blob" 619 op: "Blob" 625 op: "Blob" 635 op: "Blob" 641 op: "Blob" [all …]
|
| /external/mesa3d/src/broadcom/vulkan/ |
| D | v3dv_pipeline_cache.c | 26 #include "util/blob.h" 101 struct blob blob; in v3dv_pipeline_cache_upload_nir() local 102 blob_init(&blob); in v3dv_pipeline_cache_upload_nir() 104 nir_serialize(&blob, nir, false); in v3dv_pipeline_cache_upload_nir() 105 if (blob.out_of_memory) { in v3dv_pipeline_cache_upload_nir() 106 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 117 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 123 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir() 125 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir() 126 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir() [all …]
|
| /external/mesa3d/src/intel/vulkan_hasvk/ |
| D | anv_pipeline_cache.c | 24 #include "util/blob.h" 36 struct blob *blob); 41 struct blob_reader *blob); 170 struct blob *blob) in anv_shader_bin_serialize() argument 175 blob_write_uint32(blob, shader->stage); in anv_shader_bin_serialize() 177 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_serialize() 178 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_serialize() 180 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_serialize() 181 blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_serialize() 182 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_serialize() [all …]
|
| /external/pytorch/aten/src/ATen/core/ |
| D | blob.h | 14 * @brief Blob is a general container that hosts a typed pointer. 16 * A Blob hosts a pointer as well as its type, and takes charge of deleting it 17 * properly when the blob is deallocated or re-allocated with a new type. A blob 20 class TORCH_API Blob final : public c10::intrusive_ptr_target { 23 * Initializes an empty Blob. 25 Blob() noexcept : meta_() {} in Blob() function 26 ~Blob() override { in ~Blob() 30 Blob(Blob&& other) noexcept : Blob() { in Blob() function 34 Blob& operator=(Blob&& other) noexcept { 35 Blob(std::move(other)).swap(*this); [all …]
|
| /external/tensorflow/tensorflow/security/ |
| D | README.md | 12 [SECURITY.md](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md). 16 | [TFSA-2022-084](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 17 | [TFSA-2022-083](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 18 | [TFSA-2022-082](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 19 | [TFSA-2022-081](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 20 | [TFSA-2022-080](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 21 | [TFSA-2022-079](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 22 | [TFSA-2022-078](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 23 | [TFSA-2022-077](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… 24 | [TFSA-2022-076](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory… [all …]
|
| /external/pigweed/pw_blob_store/public/pw_blob_store/ |
| D | blob_store.h | 34 // BlobStore is a storage container for a single blob of data. BlobStore is 41 // Once a blob write is closed, reopening to write will discard the previous 42 // blob. 44 // Write blob: 50 // Read blob: 80 // Open writer for writing/erasing of a new/fresh blob. Open will invalidate 81 // any existing blob that may be stored, and will not retain the previous 83 // this blob. Only one writer is allowed to be open at a time. Returns: 95 // Open and resume an in-progress/interrupted blob for writing. This will 96 // check for any existing write-in-prgress blob (not Closed) that may be [all …]
|
| /external/pigweed/pw_blob_store/ |
| D | blob_store_test.cc | 77 BlobStoreBuffer<kBufferSize> blob( in WriteTestBlock() local 79 EXPECT_EQ(OkStatus(), blob.Init()); in WriteTestBlock() 81 BlobStore::BlobWriterWithBuffer writer(blob); in WriteTestBlock() 86 VerifyBlob(blob, write_size_bytes); in WriteTestBlock() 89 void VerifyBlob(BlobStore& blob, size_t expected_data_size) { in VerifyBlob() argument 90 EXPECT_TRUE(blob.HasData()); in VerifyBlob() 91 BlobStore::BlobReader reader(blob); in VerifyBlob() 102 // Open a new blob instance and read the blob using the given read chunk size. 109 BlobStoreBuffer<kBufferSize> blob( in ChunkReadTest() local 111 EXPECT_EQ(OkStatus(), blob.Init()); in ChunkReadTest() [all …]
|
| /external/mesa3d/src/gallium/drivers/v3d/ |
| D | v3d_disk_cache.c | 31 #include "util/blob.h" 85 struct blob blob; in v3d_disk_cache_compute_key() local 86 blob_init(&blob); in v3d_disk_cache_compute_key() 87 blob_write_bytes(&blob, ckey, ckey_size); in v3d_disk_cache_compute_key() 88 blob_write_bytes(&blob, uncompiled->sha1, 20); in v3d_disk_cache_compute_key() 90 disk_cache_compute_key(cache, blob.data, blob.size, cache_key); in v3d_disk_cache_compute_key() 92 blob_finish(&blob); in v3d_disk_cache_compute_key() 128 struct blob_reader blob; in v3d_disk_cache_retrieve() local 129 blob_reader_init(&blob, buffer, buffer_size); in v3d_disk_cache_retrieve() 132 const void *prog_data = blob_read_bytes(&blob, prog_data_size); in v3d_disk_cache_retrieve() [all …]
|
| /external/python/cpython3/Modules/_sqlite/ |
| D | blob.c | 5 #include "blob.h" 9 #include "clinic/blob.c.h" 14 class _sqlite3.Blob "pysqlite_Blob *" "clinic_state()->BlobType" 21 if (self->blob) { in close_blob() 22 sqlite3_blob *blob = self->blob; in close_blob() local 23 self->blob = NULL; in close_blob() 26 sqlite3_blob_close(blob); in close_blob() 62 // Return 1 if the blob object is usable, 0 if not. 70 if (self->blob == NULL) { in check_blob() 73 "Cannot operate on a closed blob."); in check_blob() [all …]
|