Home
last modified time | relevance | path

Searched full:blob (Results 1 – 25 of 5694) sorted by relevance

12345678910>>...228

/external/angle/src/common/spirv/
Dspirv_instruction_builder_autogen.cpp41 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t version, uint32_t idCount) in WriteSpirvHeader() argument
55 ASSERT(blob->empty()); in WriteSpirvHeader()
57 blob->push_back(spv::MagicNumber); in WriteSpirvHeader()
58 blob->push_back(version); in WriteSpirvHeader()
59 blob->push_back(kANGLEGeneratorId << 16 | kANGLEGeneratorVersion); in WriteSpirvHeader()
60 blob->push_back(idCount); in WriteSpirvHeader()
61 blob->push_back(0x00000000); in WriteSpirvHeader()
64 void WriteNop(Blob *blob) in WriteNop() argument
66 const size_t startSize = blob->size(); in WriteNop()
67 blob->push_back(0); in WriteNop()
[all …]
Dspirv_instruction_builder_autogen.h23 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/
Dblob.c26 #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 …]
Dblob.h36 /* 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/
Dtest_gbb_utility.sh18 ${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/
Dhb-blob.cc29 #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/
DBlob.java7 * 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/
Dmod.rs1 //! 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/mesa3d/src/util/tests/
Dblob_test.cpp35 #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/skia/src/text/gpu/
DTextBlobRedrawCoordinator.cpp45 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/
Dsecure_blob_test.cc26 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 …]
Dsecure_blob.cc31 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/freedreno/ir3/
Dir3_disk_cache.c82 /* Serialize the NIR to a binary blob that we can hash for the disk in ir3_disk_cache_init_shader_key()
87 struct blob blob; in ir3_disk_cache_init_shader_key() local
88 blob_init(&blob); in ir3_disk_cache_init_shader_key()
89 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key()
90 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key()
91 blob_finish(&blob); in ir3_disk_cache_init_shader_key()
111 struct blob blob; in compute_variant_key() local
112 blob_init(&blob); in compute_variant_key()
114 blob_write_bytes(&blob, &shader->cache_key, sizeof(shader->cache_key)); in compute_variant_key()
115 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_disk_cache.c63 /* 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/nouveau/codegen/
Dnv50_ir_serialize.cpp1 #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/mesa3d/src/gallium/drivers/asahi/
Dagx_disk_cache.c13 #include "util/blob.h"
60 write_shader(struct blob *blob, const struct agx_compiled_shader *binary, in write_shader() argument
64 blob_write_uint32(blob, shader_size); in write_shader()
65 blob_write_bytes(blob, binary->bo->ptr.cpu, shader_size); in write_shader()
66 blob_write_bytes(blob, &binary->info, sizeof(binary->info)); in write_shader()
67 blob_write_uint32(blob, binary->push_range_count); in write_shader()
68 blob_write_bytes(blob, binary->push, in write_shader()
72 blob_write_uint32(blob, binary->gs_count_words); in write_shader()
73 blob_write_uint32(blob, binary->gs_output_mode); in write_shader()
74 write_shader(blob, binary->pre_gs, false); in write_shader()
[all …]
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline_cache.c26 #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/tensorflow/tensorflow/security/
DREADME.md12 [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/mesa3d/src/intel/vulkan_hasvk/
Danv_pipeline_cache.c24 #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/pigweed/pw_blob_store/public/pw_blob_store/
Dblob_store.h34 // 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/
Dblob_store_test.cc77 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/intel/vulkan/
Danv_pipeline_cache.c24 #include "util/blob.h"
38 struct blob *blob);
43 struct blob_reader *blob);
212 struct blob *blob) in anv_shader_bin_serialize() argument
217 blob_write_uint32(blob, shader->stage); in anv_shader_bin_serialize()
219 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_serialize()
220 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_serialize()
222 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_serialize()
229 blob_write_bytes(blob, &prog_data, shader->prog_data_size); in anv_shader_bin_serialize()
231 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_serialize()
[all …]
/external/python/cpython3/Modules/_sqlite/
Dblob.c1 #include "blob.h"
5 #include "clinic/blob.c.h"
10 class _sqlite3.Blob "pysqlite_Blob *" "clinic_state()->BlobType"
17 if (self->blob) { in close_blob()
18 sqlite3_blob *blob = self->blob; in close_blob() local
19 self->blob = NULL; in close_blob()
22 sqlite3_blob_close(blob); in close_blob()
58 // Return 1 if the blob object is usable, 0 if not.
66 if (self->blob == NULL) { in check_blob()
69 "Cannot operate on a closed blob."); in check_blob()
[all …]
/external/mesa3d/src/vulkan/runtime/
Dvk_pipeline_cache.c34 #include "util/blob.h"
46 struct blob *blob) in vk_raw_data_cache_object_serialize() argument
51 blob_write_bytes(blob, data_obj->data, data_obj->data_size); in vk_raw_data_cache_object_serialize()
60 struct blob_reader *blob) in vk_raw_data_cache_object_deserialize() argument
63 * happens with a brand new blob reader for error checking anyway so we in vk_raw_data_cache_object_deserialize()
64 * can assume the blob consumes the entire reader and we don't need to in vk_raw_data_cache_object_deserialize()
67 assert(blob->current < blob->end); in vk_raw_data_cache_object_deserialize()
68 size_t data_size = blob->end - blob->current; in vk_raw_data_cache_object_deserialize()
69 const void *data = blob_read_bytes(blob, data_size); in vk_raw_data_cache_object_deserialize()
203 struct blob *blob, uint32_t *data_size) in vk_pipeline_cache_object_serialize() argument
[all …]
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_disk_cache.c30 #include "util/blob.h"
92 struct blob blob; in v3d_disk_cache_compute_key() local
93 blob_init(&blob); in v3d_disk_cache_compute_key()
94 blob_write_bytes(&blob, ckey, ckey_size); in v3d_disk_cache_compute_key()
95 blob_write_bytes(&blob, uncompiled->sha1, 20); in v3d_disk_cache_compute_key()
97 disk_cache_compute_key(cache, blob.data, blob.size, cache_key); in v3d_disk_cache_compute_key()
99 blob_finish(&blob); in v3d_disk_cache_compute_key()
135 struct blob_reader blob; in v3d_disk_cache_retrieve() local
136 blob_reader_init(&blob, buffer, buffer_size); in v3d_disk_cache_retrieve()
139 const void *prog_data = blob_read_bytes(&blob, prog_data_size); in v3d_disk_cache_retrieve()
[all …]

12345678910>>...228