| /external/angle/src/common/spirv/ |
| D | spirv_instruction_builder_autogen.cpp | 32 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount) in WriteSpirvHeader() argument 46 ASSERT(blob->empty()); in WriteSpirvHeader() 48 blob->push_back(spv::MagicNumber); in WriteSpirvHeader() 49 blob->push_back(0x00010000); in WriteSpirvHeader() 50 blob->push_back(kANGLEGeneratorId << 16 | kANGLEGeneratorVersion); in WriteSpirvHeader() 51 blob->push_back(idCount); in WriteSpirvHeader() 52 blob->push_back(0x00000000); in WriteSpirvHeader() 55 void WriteNop(Blob *blob) in WriteNop() argument 57 const size_t startSize = blob->size(); in WriteNop() 58 blob->push_back(0); in WriteNop() [all …]
|
| D | spirv_instruction_builder_autogen.h | 23 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount); 24 void WriteNop(Blob *blob); 25 void WriteUndef(Blob *blob, IdResultType idResultType, IdResult idResult); 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 idResult, 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. */ 67 * allocation blob. argument 75 * 1. blob->current should be equal to blob->end, (if not, too little was argument 78 * 2. blob->overrun should be false, (otherwise, too much was read). 88 * Init a new, empty blob. [all …]
|
| D | blob_test.c | 24 /* A collection of unit tests for blob.c */ 37 #include "blob.h" 125 struct blob blob; in test_write_and_read_functions() local 131 blob_init(&blob); in test_write_and_read_functions() 133 /*** Test blob by writing one of every possible kind of value. */ in test_write_and_read_functions() 135 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in test_write_and_read_functions() 137 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in test_write_and_read_functions() 138 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in test_write_and_read_functions() 141 str_offset = blob.size; in test_write_and_read_functions() 142 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in test_write_and_read_functions() [all …]
|
| /external/vboot_reference/tests/futility/ |
| D | test_gbb_utility.sh | 18 ${FUTILITY} gbb_utility -c 16,0x10,16,0x10 ${TMP}.blob 21 ${FUTILITY} gbb_utility -s --flags=0xdeadbeef ${TMP}.blob 22 ${FUTILITY} gbb_utility -g --flags ${TMP}.blob | grep -i 0xdeadbeef 25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then 29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob 31 ${FUTILITY} gbb_utility -g ${TMP}.blob | grep "0123456789ABCDE" 39 if ${FUTILITY} gbb_utility -s --rootkey ${TMP}.data1.toolong ${TMP}.blob; then false; fi 40 if ${FUTILITY} gbb_utility -s --recoverykey ${TMP}.data2.toolong ${TMP}.blob; then false; fi 41 if ${FUTILITY} gbb_utility -s --bmpfv ${TMP}.data3.toolong ${TMP}.blob; then false; fi 50 --bmpfv ${TMP}.data3.short ${TMP}.blob [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/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/rust/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 | 39 sk_sp<TextBlob> blob = this->findOrCreateBlob(viewMatrix, glyphRunList, paint, in drawGlyphRunList() local 42 blob->draw(canvas, clip, viewMatrix, glyphRunList.origin(), paint, sdc); in drawGlyphRunList() 53 sk_sp<TextBlob> blob = this->findOrCreateBlob(viewMatrix, glyphRunList, paint, in drawGlyphRunList() local 56 blob->draw(canvas, glyphRunList.origin(), paint, device); in drawGlyphRunList() 69 sk_sp<TextBlob> blob; in findOrCreateBlob() local 71 blob = this->find(key); in findOrCreateBlob() 74 if (blob == nullptr || !blob->canReuse(paint, positionMatrix)) { in findOrCreateBlob() 75 if (blob != nullptr) { in findOrCreateBlob() 76 // We have to remake the blob because changes may invalidate our masks. in findOrCreateBlob() 77 this->remove(blob.get()); 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 …]
|
| D | secure_blob.cc | 31 std::string BlobToString(const Blob& blob) { in BlobToString() argument 32 return std::string(blob.begin(), blob.end()); in BlobToString() 35 Blob BlobFromString(const std::string& bytes) { in BlobFromString() 36 return Blob(bytes.begin(), bytes.end()); in BlobFromString() 39 Blob CombineBlobs(const std::initializer_list<Blob>& blobs) { in CombineBlobs() 41 for (const auto& blob : blobs) in CombineBlobs() local 42 total_size += blob.size(); in CombineBlobs() 43 Blob concatenation; in CombineBlobs() 45 for (const auto& blob : blobs) in CombineBlobs() local 46 concatenation.insert(concatenation.end(), blob.begin(), blob.end()); in CombineBlobs() [all …]
|
| /external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
| D | nv50_ir_serialize.cpp | 1 #include "util/blob.h" 22 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) in nv50_ir_prog_info_serialize() argument 24 blob_write_uint32(blob, info->bin.smemSize); in nv50_ir_prog_info_serialize() 25 blob_write_uint16(blob, info->target); in nv50_ir_prog_info_serialize() 26 blob_write_uint8(blob, info->type); in nv50_ir_prog_info_serialize() 27 blob_write_uint8(blob, info->optLevel); in nv50_ir_prog_info_serialize() 28 blob_write_uint8(blob, info->dbgFlags); in nv50_ir_prog_info_serialize() 29 blob_write_uint8(blob, info->omitLineNum); in nv50_ir_prog_info_serialize() 30 blob_write_uint8(blob, info->bin.sourceRep); in nv50_ir_prog_info_serialize() 37 blob_write_uint32(blob, num_tokens); in nv50_ir_prog_info_serialize() [all …]
|
| /external/mesa3d/src/gallium/drivers/etnaviv/ |
| D | etnaviv_disk_cache.c | 66 /* Serialize the NIR to a binary blob that we can hash for the disk in etna_disk_cache_init_shader_key() 71 struct blob blob; in etna_disk_cache_init_shader_key() local 73 blob_init(&blob); in etna_disk_cache_init_shader_key() 74 nir_serialize(&blob, shader->nir, true); in etna_disk_cache_init_shader_key() 75 _mesa_sha1_update(&ctx, blob.data, blob.size); in etna_disk_cache_init_shader_key() 76 blob_finish(&blob); in etna_disk_cache_init_shader_key() 85 struct blob blob; in compute_variant_key() local 87 blob_init(&blob); in compute_variant_key() 89 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key() 90 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() [all …]
|
| /external/mesa3d/src/intel/vulkan/ |
| D | anv_pipeline_cache.c | 24 #include "util/blob.h" 147 struct blob *blob) in anv_shader_bin_write_to_blob() argument 149 blob_write_uint32(blob, shader->stage); in anv_shader_bin_write_to_blob() 151 blob_write_uint32(blob, shader->key->size); in anv_shader_bin_write_to_blob() 152 blob_write_bytes(blob, shader->key->data, shader->key->size); in anv_shader_bin_write_to_blob() 154 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_write_to_blob() 155 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_write_to_blob() 157 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_write_to_blob() 158 blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_write_to_blob() 159 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_write_to_blob() [all …]
|
| /external/mesa3d/src/broadcom/vulkan/ |
| D | v3dv_pipeline_cache.c | 26 #include "util/blob.h" 87 struct blob blob; in v3dv_pipeline_cache_upload_nir() local 88 blob_init(&blob); in v3dv_pipeline_cache_upload_nir() 90 nir_serialize(&blob, nir, false); in v3dv_pipeline_cache_upload_nir() 91 if (blob.out_of_memory) { in v3dv_pipeline_cache_upload_nir() 92 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 103 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir() 109 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir() 111 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir() 112 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir() [all …]
|
| /external/mesa3d/src/freedreno/ir3/ |
| D | ir3_disk_cache.c | 85 /* Serialize the NIR to a binary blob that we can hash for the disk in ir3_disk_cache_init_shader_key() 90 struct blob blob; in ir3_disk_cache_init_shader_key() local 91 blob_init(&blob); in ir3_disk_cache_init_shader_key() 92 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key() 93 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key() 94 blob_finish(&blob); in ir3_disk_cache_init_shader_key() 108 struct blob blob; in compute_variant_key() local 109 blob_init(&blob); in compute_variant_key() 111 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key() 112 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key() [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/ |
| 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() 87 BlobStore::BlobReader reader(blob); in WriteTestBlock() 97 // Open a new blob instance and read the blob using the given read chunk size. 104 BlobStoreBuffer<kBufferSize> blob( in ChunkReadTest() local 106 EXPECT_EQ(OkStatus(), blob.Init()); in ChunkReadTest() 109 BlobStore::BlobReader reader1(blob); in ChunkReadTest() 116 BlobStore::BlobReader reader(blob); in ChunkReadTest() 165 BlobStoreBuffer<kBufferSize> blob( in TEST_F() local [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 a blob for writing/erasing. Open will invalidate any existing blob 95 // Finalize a blob write. Flush all remaining buffered data to storage and 96 // store blob metadata. Close fails in the closed state, do NOT retry Close 97 // on error. An error may or may not result in an invalid blob stored. 106 // Erase the blob partition and reset state for a new blob. Explicit calls [all …]
|
| /external/ImageMagick/Magick++/tests/ |
| D | readWriteBlob.cpp | 23 // A derived Blob class to exercise updateNoCopy() 24 class myBlob : public Blob 29 : Blob() in myBlob() 41 cout << "Failed to stream into blob!" << endl; in myBlob() 45 // Insert data into blob in myBlob() 47 Blob::NewAllocator ); in myBlob() 78 // Read raw data from file into BLOB in main() 101 // Construct Magick++ Blob in main() 102 Blob blob(static_cast<const unsigned char*>(blobData), blobLen); in main() 107 // Construct with blob data only in main() [all …]
|
| /external/ImageMagick/Magick++/lib/ |
| D | Blob.cpp | 6 // Implementation of Blob 13 #include "Magick++/Blob.h" 19 Magick::Blob::Blob(void) in Blob() function in Magick::Blob 24 Magick::Blob::Blob(const void* data_,const size_t length_) in Blob() function in Magick::Blob 29 Magick::Blob::Blob(const Magick::Blob& blob_) in Blob() function in Magick::Blob 36 Magick::Blob::~Blob() in ~Blob() 50 Magick::Blob& Magick::Blob::operator=(const Magick::Blob& blob_) in operator =() 63 void Magick::Blob::base64(const std::string base64_) in base64() 75 Magick::Blob::MallocAllocator); in base64() 78 std::string Magick::Blob::base64(void) const in base64() [all …]
|
| /external/mesa3d/src/compiler/nir/ |
| D | nir_serialize.c | 41 struct blob *blob; member 70 struct blob_reader *blob; member 123 return read_lookup_object(ctx, blob_read_uint32(ctx->blob)); in read_object() 177 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); in write_constant() 178 blob_write_uint32(ctx->blob, c->num_elements); in write_constant() 188 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); in read_constant() 189 c->num_elements = blob_read_uint32(ctx->blob); in read_constant() 286 blob_write_uint32(ctx->blob, flags.u32); in write_variable() 289 encode_type_to_blob(ctx->blob, var->type); in write_variable() 294 encode_type_to_blob(ctx->blob, var->interface_type); in write_variable() [all …]
|
| /external/perfetto/src/trace_processor/importers/ftrace/ |
| D | ftrace_parser.cc | 390 void FtraceParser::ParseFtraceStats(ConstBytes blob, in ParseFtraceStats() argument 392 protos::pbzero::FtraceStats::Decoder evt(blob.data, blob.size); in ParseFtraceStats() 1112 ConstBytes blob) { in ParseGenericFtrace() argument 1113 protos::pbzero::GenericFtraceEvent::Decoder evt(blob.data, blob.size); in ParseGenericFtrace() 1142 ConstBytes blob, in ParseTypedFtraceToRaw() argument 1147 ProtoDecoder decoder(blob.data, blob.size); in ParseTypedFtraceToRaw() 1250 ConstBytes blob) { in ParseSchedSwitch() argument 1251 protos::pbzero::SchedSwitchFtraceEvent::Decoder ss(blob.data, blob.size); in ParseSchedSwitch() 1261 ConstBytes blob) { in ParseSchedWaking() argument 1262 protos::pbzero::SchedWakingFtraceEvent::Decoder sw(blob.data, blob.size); in ParseSchedWaking() [all …]
|
| /external/mesa3d/src/mesa/state_tracker/ |
| D | st_shader_cache.c | 44 write_stream_out_to_cache(struct blob *blob, in write_stream_out_to_cache() argument 47 blob_write_uint32(blob, state->stream_output.num_outputs); in write_stream_out_to_cache() 49 blob_write_bytes(blob, &state->stream_output.stride, in write_stream_out_to_cache() 51 blob_write_bytes(blob, &state->stream_output.output, in write_stream_out_to_cache() 57 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) in copy_blob_to_driver_cache_blob() argument 59 prog->driver_cache_blob = ralloc_size(NULL, blob->size); in copy_blob_to_driver_cache_blob() 60 memcpy(prog->driver_cache_blob, blob->data, blob->size); in copy_blob_to_driver_cache_blob() 61 prog->driver_cache_blob_size = blob->size; in copy_blob_to_driver_cache_blob() 65 write_tgsi_to_cache(struct blob *blob, const struct tgsi_token *tokens, in write_tgsi_to_cache() argument 70 blob_write_uint32(blob, num_tokens); in write_tgsi_to_cache() [all …]
|