/external/mesa3d/src/mesa/main/ |
uniform_query.cpp | 294 unsigned bytes = sizeof(src[0]) * elements; local 295 if (bufSize < 0 || bytes > (unsigned) bufSize) { 298 " but %u bytes are required)", bufSize, bytes ); 314 memcpy(paramsOut, src, bytes);
|
/external/mesa3d/src/mesa/swrast/ |
s_blend.c | 76 GLint bytes; local 86 bytes = 4 * n * sizeof(GLubyte); 88 bytes = 4 * n * sizeof(GLushort); 90 bytes = 4 * n * sizeof(GLfloat); 92 memcpy(src, dst, bytes); [all...] |
/external/nanopb-c/ |
pb_encode.c | 176 * for pointer-type string and bytes fields, the array entries are 428 const uint8_t *bytes = value; local 430 lebytes[0] = bytes[3]; 431 lebytes[1] = bytes[2]; 432 lebytes[2] = bytes[1]; 433 lebytes[3] = bytes[0]; 443 const uint8_t *bytes = value; local 445 lebytes[0] = bytes[7]; 446 lebytes[1] = bytes[6]; 447 lebytes[2] = bytes[5] 617 const pb_bytes_array_t *bytes = (const pb_bytes_array_t*)src; local [all...] |
/external/nfacct/ |
nfacct.c | 177 "{ pkts = %.20llu, bytes = %.20llu } = %s;", 254 static int _nfacct_cmd_add(char *name, int pkts, int bytes) 285 nla_put_u64(msg, NFACCT_BYTES, htobe64(bytes)); 588 uint64_t pkts, bytes; local 599 ret = sscanf(buffer, "{ pkts = %llu, bytes = %llu } = %s", 600 &pkts, &bytes, name); 605 if ((ret = _nfacct_cmd_add(name, pkts, bytes)) != 0)
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
Pipeline.java | 35 * Input class for the pipelined parser. Buffer all bytes read from the socket 87 byte[] bytes; field in class:Pipeline.Buffer 93 public Buffer(byte[] bytes, int length) { 96 this.bytes = bytes; 100 int retval = bytes[ptr++] & 0xFF; 131 public void write(byte[] bytes, int start, int length) throws IOException { 134 Buffer buff = new Buffer(bytes, length); 142 public void write(byte[] bytes) throws IOException { 145 Buffer buff = new Buffer(bytes, bytes.length) [all...] |
/external/objenesis/main/src/test/java/org/objenesis/ |
ClassReader.java | 46 String bytes; field in class:ClassReader.CONSTANT_Utf8_info 49 bytes = in.readUTF(); 55 "bytes='" + bytes + '\'' + 150 String attribute_name = ((CONSTANT_Utf8_info) constant_pool[attribute_name_index]).bytes;
|
/external/pdfium/core/fxge/ge/ |
cfx_facecache.cpp | 198 int bytes = anti_alias == FXFT_RENDER_MODE_LCD ? 3 : 1; local 203 for (int b = 0; b < bytes; b++) 204 pDestBuf[i * dest_pitch + n * bytes + b] = data;
|
/external/pdfium/third_party/freetype/src/pshinter/ |
pshrec.h | 98 FT_Byte* bytes; member in struct:PS_MaskRec_
|
/external/pdfium/xfa/fxbarcode/pdf417/ |
BC_PDF417HighLevelEncoder.cpp | 62 CFX_ByteString bytes; local 63 CBC_UtilCodingConvert::UnicodeToUTF8(wideMsg, bytes); 65 int32_t len = bytes.GetLength(); 67 FX_WCHAR ch = (FX_WCHAR)(bytes.GetAt(i) & 0xff); 68 if (ch == '?' && bytes.GetAt(i) != '?') { 75 for (int32_t k = 0; k < bytes.GetLength(); k++) { 76 byteArr.Add(bytes.GetAt(k)); 84 } else if (compaction == BYTES) { 264 void CBC_PDF417HighLevelEncoder::encodeBinary(CFX_ArrayTemplate<uint8_t>* bytes, 281 t += bytes->GetAt(idx + i) & 0xff [all...] |
/external/piex/src/binary_parse/ |
range_checked_byte_ptr.cc | 144 std::vector<unsigned char> bytes = extractBytes(pos, length); local 146 result.reserve(bytes.size()); 147 for (size_t i = 0; i < bytes.size(); ++i) { 148 result.push_back(static_cast<char>(bytes[i]));
|
/external/proguard/src/proguard/classfile/constant/ |
Utf8Constant.java | 54 // Initially, we're storing the UTF-8 bytes in a byte array. 59 private byte[] bytes; field in class:Utf8Constant 78 this.bytes = null; 84 * Initializes the UTF-8 data with an array of bytes. 86 public void setBytes(byte[] bytes) 88 this.bytes = bytes; 94 * Returns the UTF-8 data as an array of bytes. 107 return bytes; 116 this.bytes = null [all...] |
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
LazyFieldLiteTest.java | 256 ByteString bytes = message.toByteString(); local 257 return new LazyFieldLite(extensionRegistry, bytes);
|
/external/protobuf/src/google/protobuf/io/ |
coded_stream_unittest.cc | 133 // Helper method used by tests for bytes warning. See implementation comment 158 uint8 bytes[10]; // Encoded bytes. member in struct:google::protobuf::io::__anon29043::VarintCase 159 int size; // Encoded size, in bytes. 193 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 208 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 255 memcpy(buffer_ + 1, kVarintCases_case.bytes, kVarintCases_case.size); 286 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 304 memcpy(buffer_, kVarintCases_case.bytes, kVarintCases_case.size); 337 memcmp(buffer_, kVarintCases_case.bytes, kVarintCases_case.size)) 410 uint8 bytes[12]; member in struct:google::protobuf::io::__anon29043::VarintErrorCase 501 uint8 bytes[sizeof(uint32)]; \/\/ Encoded bytes. member in struct:google::protobuf::io::__anon29043::Fixed32Case 506 uint8 bytes[sizeof(uint64)]; \/\/ Encoded bytes. member in struct:google::protobuf::io::__anon29043::Fixed64Case [all...] |
zero_copy_stream_impl.cc | 244 int bytes; local 246 bytes = write(file_, buffer_base + total_written, size - total_written); 247 } while (bytes < 0 && errno == EINTR); 249 if (bytes <= 0) { 260 if (bytes < 0) { 265 total_written += bytes; 389 // Hit the end of the stream. Figure out how many more bytes we still have
|
/external/rootdev/ |
rootdev.c | 60 ssize_t bytes = 0; local 70 bytes = read(fd, candidate, sizeof(candidate)); 74 if (bytes < 3) 76 candidate[bytes] = 0;
|
/external/skia/experimental/Networking/ |
SkSockets.h | 46 * to be sent and dataSize specifies the number of bytes to send. This 49 * socket's open connections until all the bytes have been successfully sent 50 * and return total the number of bytes written to all clients, unless there 64 * packets if necessary) and return the number of bytes successfully read, 96 int bytes; member in struct:SkSocket::header
|
/external/skia/include/gpu/ |
GrResourceKey.h | 60 size_t bytes = that.size(); local 61 SkASSERT(SkIsAlign4(bytes)); 62 fKey.reset(SkToInt(bytes / sizeof(uint32_t))); 63 memcpy(fKey.get(), that.fKey.get(), bytes);
|
/external/skia/include/private/ |
SkTDArray.h | 107 * return the number of bytes in the array: count * sizeof(T) 109 size_t bytes() const { return fCount * sizeof(T); } function in class:SkTDArray
|
/external/skia/src/codec/ |
SkWebpCodec.cpp | 31 const char* bytes = static_cast<const char*>(buf); local 32 return bytesRead >= 14 && !memcmp(bytes, "RIFF", 4) && !memcmp(&bytes[8], "WEBPVP", 6); 37 // bytes again. 57 WebPData webpData = { data->bytes(), data->size() }; 72 // now check that if we are 4-bytes per pixel, we also don't overflow 83 colorSpace = SkColorSpace::MakeICC(chunkIterator.chunk.bytes, chunkIterator.chunk.size); 102 VP8StatusCode status = WebPGetFeatures(frame.fragment.bytes, frame.fragment.size, &features); 328 switch (WebPIUpdate(idec, frame.fragment.bytes, frame.fragment.size)) {
|
/external/skia/src/core/ |
SkICC.cpp | 63 const size_t bytes = gammas->tableSize(index) * sizeof(float); local 64 memcpy(tablePtr, ptr, bytes); 147 static_assert(SkIsAlign4(sizeof(kDescriptionTagBody)), "Description must be aligned to 4-bytes."); 172 static_assert(SkIsAlign4(sizeof(kCopyrightTagBody)), "Copyright must be aligned to 4-bytes.");
|
/external/skia/src/gpu/text/ |
GrAtlasGlyphCache.cpp | 294 uint8_t* bytes = reinterpret_cast<uint8_t*>(dst); local 295 expand_bits(bytes, bits, width, height, dstRB, srcRB); 389 , fPool(9/*start allocations at 512 bytes*/)
|
/external/skia/tests/ |
ColorSpaceTest.cpp | 227 size_t bytes = space->writeToMemory(nullptr); local 228 sk_sp<SkData> data2 = SkData::MakeUninitialized(bytes);
|
StreamTest.cpp | 32 size_t bytes = stream->read(tmp, len); local 33 REPORTER_ASSERT(reporter, bytes == len); 38 size_t bytes = stream->read(tmp, 1); local 39 REPORTER_ASSERT(reporter, 0 == bytes); 110 size_t bytes = stream->read(&tmp, 1); local 111 REPORTER_ASSERT(reporter, 0 == bytes); 139 // we know that packeduint tries to write 1, 2 or 4 bytes for the length, 317 const uint8_t* expect = expected->bytes(); 330 ERRORF(rep, "Peek returned wrong bytes!"); 423 const uint8_t* ptr = data->bytes(); [all...] |
/external/skia/third_party/gif/ |
SkGifImageReader.cpp | 83 // GETN(n, s) requests at least 'n' bytes available from 'q', at start of state 's'. 85 // Note, the hold will never need to be bigger than 256 bytes to gather up in the hold, 86 // as each GIF block (except colormaps) can never be bigger than 256 bytes. 298 // Move the remaining bytes to the beginning of the buffer. 325 const size_t bytes = m_colors * SK_BYTES_PER_COLORMAP_ENTRY; local 326 sk_sp<SkData> rawData(streamBuffer->getDataAtPosition(m_position, bytes)); 332 const uint8_t* srcColormap = rawData->bytes(); 547 // The GIF spec mandates that the GIFControlExtension header block length is 4 bytes, 549 // and the parser for this block reads 4 bytes, so we must enforce that the buffer 550 // contains at least this many bytes. If the GIF specifies a different length, w [all...] |
/external/squashfs-tools/squashfs-tools/ |
pseudo.c | 276 int n, bytes; local 310 &bytes); 311 def += bytes; 343 n = sscanf(def, "%u %u %n", &major, &minor, &bytes); 344 def += bytes;
|