Lines Matching defs:count

101 // [ 4/8 bytes ] count
102 // [ ... ] contents (count * size of individual elements)
110 size_t count = static_cast<size_t>(ReadArithmetic<size_t>());
111 if (count == 0) {
115 Debug("Reading %d vector elements...\n", count);
119 result = ReadArithmeticVector<T>(count);
121 result = ReadNonArithmeticVector<T>(count);
155 void BlobDeserializer<Impl>::ReadArithmetic(T* out, size_t count) {
157 DCHECK_GT(count, 0); // Should not read contents for vectors of size 0.
160 Debug("Read<%s>()(%d-byte), count=%d: ", name.c_str(), sizeof(T), count);
163 size_t size = sizeof(T) * count;
168 "{ " + std::to_string(out[0]) + (count > 1 ? ", ... }" : " }");
177 std::vector<Number> BlobDeserializer<Impl>::ReadArithmeticVector(size_t count) {
179 DCHECK_GT(count, 0); // Should not read contents for vectors of size 0.
180 std::vector<Number> result(count);
181 ReadArithmetic(result.data(), count);
188 std::vector<T> BlobDeserializer<Impl>::ReadNonArithmeticVector(size_t count) {
190 DCHECK_GT(count, 0); // Should not read contents for vectors of size 0.
192 result.reserve(count);
195 for (size_t i = 0; i < count; ++i) {
227 // [ 4/8 bytes ] count
228 // [ ... ] contents (count * size of individual elements)
235 Debug("\nWriteVector<%s>() (%d-byte), count=%d: %s\n",
288 size_t BlobSerializer<Impl>::WriteArithmetic(const T* data, size_t count) {
290 DCHECK_GT(count, 0); // Should not write contents for vectors of size 0.
293 "{ " + std::to_string(data[0]) + (count > 1 ? ", ... }" : " }");
295 Debug("Write<%s>() (%zu-byte), count=%zu: %s",
298 count,
302 size_t size = sizeof(T) * count;