/external/Microsoft-GSL/tests/ |
strided_span_tests.cpp | 480 multi_span<const byte, dynamic_range> bytes = as_bytes(av); variable 484 strided_bounds<2> bounds{{2, bytes.size() / 4}, {bytes.size() / 2, 1}}; 485 strided_span<const byte, 2> sav2{bytes.data(), bytes.size(), bounds}; 495 strided_bounds<2> bounds{{2, bytes.size() / 4}, {bytes.size() / 2, 1}}; 497 as_multi_span(bytes, dim<2>(), dim(bytes.size() / 2)); 510 as_multi_span(bytes, dim<2>(), dim(bytes.size() / 2)) [all...] |
/external/adhd/cras/src/common/ |
cras_shm.h | 21 * used_size - The size in bytes of the sample area being actively used. 22 * frame_bytes - The size of each frame in bytes. 205 /* How many bytes are queued? */ 227 size_t bytes; local 229 bytes = cras_shm_get_bytes_queued(shm); 230 if (bytes % shm->config.frame_bytes != 0) 232 return bytes / shm->config.frame_bytes; 416 /* Sets the size of a frame in bytes. */ 425 /* Returns the size of a frame in bytes. */ 444 /* Sets the used_size of the shm region. This is the maximum number of bytes [all...] |
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/ |
INVOKEDYNAMIC.java | 73 protected void initFromFile( final ByteSequence bytes, final boolean wide ) throws IOException {
74 super.initFromFile(bytes, wide);
76 bytes.readByte(); // Skip 0 byte
77 bytes.readByte(); // Skip 0 byte
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/dump/ |
TapeInputStream.java | 104 " bytes."); 120 " bytes."); 123 int bytes = 0; local 125 while (bytes < len) { 139 if ((readOffset + (len - bytes)) <= blockSize) { 141 n = len - bytes; 150 bytes += n; 154 return bytes; 158 * Skip bytes. Same as read but without the arraycopy. 170 " bytes.") 173 long bytes = 0; local [all...] |
/external/avb/libavb/ |
avb_util.c | 57 uint8_t bytes[4]; member in union:__anon15341 59 ret.bytes[0] = (in >> 24) & 0xff; 60 ret.bytes[1] = (in >> 16) & 0xff; 61 ret.bytes[2] = (in >> 8) & 0xff; 62 ret.bytes[3] = in & 0xff; 70 uint8_t bytes[8]; member in union:__anon15342 72 ret.bytes[0] = (in >> 56) & 0xff; 73 ret.bytes[1] = (in >> 48) & 0xff; 74 ret.bytes[2] = (in >> 40) & 0xff; 75 ret.bytes[3] = (in >> 32) & 0xff [all...] |
/external/boringssl/src/crypto/bn_extra/ |
convert.c | 114 // decode_hex decodes |in_len| bytes of hex data from |in| and updates |bn|. 161 // decode_dec decodes |in_len| bytes of decimal data from |in| and updates |bn|. 383 const size_t bytes = (bits + 7) / 8; local 387 if (bytes != 0 && (bits & 0x07) == 0) { 391 const size_t len = bytes + extend; 392 if (len < bytes ||
|
/external/boringssl/src/crypto/curve25519/ |
spake25519.c | 318 uint8_t bytes[32]; member in union:__anon15429 415 constant_time_eq_w(password_scalar.bytes[0] & 1, 1)); 421 constant_time_eq_w(password_scalar.bytes[0] & 2, 2)); 427 constant_time_eq_w(password_scalar.bytes[0] & 4, 4)); 430 assert((password_scalar.bytes[0] & 7) == 0); 433 OPENSSL_memcpy(ctx->password_scalar, password_scalar.bytes,
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
ec_test.cc | 143 EXPECT_EQ(Bytes(kECKeyWithoutPublic), Bytes(out.data(), out.size())); 174 EXPECT_EQ(Bytes(kECKeyWithZeros), Bytes(out.data(), out.size())); 180 EXPECT_EQ(Bytes(kECKeyWithZeros), Bytes(out.data(), out.size())); 196 EXPECT_EQ(Bytes(kECKeyWithoutPublic), Bytes(out.data(), out.size())); 823 std::vector<uint8_t> bytes; local [all...] |
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
ecdsa_test.cc | 293 std::vector<uint8_t> bytes(order_len, 0xff); 294 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->r)); 295 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->s)); 360 std::vector<uint8_t> bytes; local 361 if (!t->GetBytes(&bytes, key)) { 365 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr));
|
/external/boringssl/src/ssl/test/ |
handshake_util.cc | 186 ssize_t bytes; local 188 (bytes = read_eintr(wfd, buf, sizeof(buf))) > 0) { 190 while (bytes) { 191 int written = BIO_write(socket, b, bytes); 205 bytes -= written; 248 fprintf(stderr, "short write (%zu of %d bytes)\n", written, read);
|
/external/capstone/bindings/ocaml/ |
capstone.ml | 98 bytes: int array; Record field in type:cs_insn0 152 let (id, address, size, bytes, mnemonic, op_str, regs_read, 154 (a.id, a.address, a.size, a.bytes, a.mnemonic, a.op_str, 160 method bytes = bytes; method
|
/external/cn-cbor/include/cn-cbor/ |
cn-cbor.h | 85 const uint8_t* bytes; member in union:cn_cbor::__anon18311 213 * Decode an array of CBOR bytes into structures. 215 * @param[in] buf The array of bytes to parse 216 * @param[in] len The number of bytes in the array 264 * @param[in] buf_offset The offset (in bytes) from the beginning of the buffer 266 * @param[in] buf_size The total length (in bytes) of the buffer 268 * @return -1 on fail, or number of bytes written 289 * @param[in] len The number of bytes of data
|
/external/curl/lib/ |
security.c | 164 /* Write |len| bytes from the buffer |to| to the socket |fd|. Return a 272 /* Send |length| bytes from |from| to the |fd| socket taking care of encoding 278 int bytes, htonl_bytes; /* 32-bit integers for htonl */ local 294 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, 296 if(!buffer || bytes <= 0) 300 error = Curl_base64_encode(conn->data, buffer, curlx_sitouz(bytes), 322 htonl_bytes = htonl(bytes); 324 socket_write(conn, fd, buffer, curlx_sitouz(bytes));
|
/external/e2fsprogs/e2fsck/ |
ea_refcount.c | 54 size_t bytes; local 64 bytes = size * sizeof(struct ea_refcount_el); 66 printf("Refcount allocated %zu entries, %zu bytes.\n", 67 refcount->size, bytes); 69 retval = ext2fs_get_mem(bytes, &refcount->list); 72 memset(refcount->list, 0, bytes);
|
/external/elfutils/libdwfl/ |
linux-core-attach.c | 76 unsigned bytes = ebl_get_elfclass (process->ebl) == ELFCLASS64 ? 8 : 4; local 77 if (addr < start || addr + bytes > end) 81 bytes, ELF_T_ADDR); 87 assert (data->d_size == bytes); 88 if (bytes == 8)
|
/external/flac/libFLAC/ |
bitwriter.c | 56 /* SWAP_BE_WORD_TO_HOST swaps bytes in a bwword (which is always big-endian) if necessary to match host byte order */ 68 /* SWAP_BE_WORD_TO_HOST swaps bytes in a bwword (which is always big-endian) if necessary to match host byte order */ 219 size_t bytes; local 223 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 226 *crc = (FLAC__uint16)FLAC__crc16(buffer, bytes); 234 size_t bytes; local 238 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 241 *crc = FLAC__crc8(buffer, bytes); 256 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes) 272 *bytes = (FLAC__BYTES_PER_WORD * bw->words) + (bw->bits >> 3) [all...] |
/external/freetype/src/pcf/ |
pcfdrivr.c | 501 FT_ULong bytes; local 570 bytes = (FT_ULong)bitmap->pitch * bitmap->rows; 572 error = ft_glyphslot_alloc_bitmap( slot, (FT_ULong)bytes ); 577 FT_STREAM_READ( bitmap->buffer, bytes ) ) 581 BitOrderInvert( bitmap->buffer, bytes ); 592 TwoByteSwap( bitmap->buffer, bytes ); 596 FourByteSwap( bitmap->buffer, bytes );
|
/external/freetype/src/pshinter/ |
pshrec.h | 98 FT_Byte* bytes; member in struct:PS_MaskRec_
|
/external/google-breakpad/src/client/mac/tests/ |
exception_handler_test.cc | 198 // Ensure that minidump file exists and is > 0 bytes. 217 // Ensure that minidump file exists and is > 0 bytes. 288 // Ensure that minidump file exists and is > 0 bytes. 314 const uint32_t kMemorySize = 256; // bytes 336 // bytes on either side of the instruction pointer. 356 // Ensure that minidump file exists and is > 0 bytes. 391 const uint8_t* bytes = region->GetMemory(); local 392 ASSERT_TRUE(bytes); 398 EXPECT_TRUE(memcmp(bytes, prefix_bytes, sizeof(prefix_bytes)) == 0); 399 EXPECT_TRUE(memcmp(bytes + kOffset, instructions, sizeof(instructions)) == 0) 490 const uint8_t* bytes = region->GetMemory(); local 590 const uint8_t* bytes = region->GetMemory(); local [all...] |
/external/google-breakpad/src/client/windows/unittests/ |
exception_handler_death_test.cc | 326 const uint32_t kMemorySize = 256; // bytes 338 // minidump should contain 128 bytes on either side of the 383 const uint8_t* bytes = region->GetMemory(); local 384 ASSERT_TRUE(bytes); 390 EXPECT_EQ(0, memcmp(bytes, prefix_bytes, sizeof(prefix_bytes))); 391 EXPECT_EQ(0, memcmp(bytes + kOffset, instructions, sizeof(instructions))); 392 EXPECT_EQ(0, memcmp(bytes + kOffset + sizeof(instructions), 415 const uint32_t kMemorySize = 256; // bytes 433 // minidump should contain 128 bytes on either side of the 478 const uint8_t* bytes = region->GetMemory() local 567 const uint8_t* bytes = region->GetMemory(); local [all...] |
/external/google-breakpad/src/processor/ |
minidump_unittest.cc | 100 vector<char> bytes; local 103 bytes.resize(file_stream.tellg()); 106 file_stream.read(&bytes[0], bytes.size()); 108 string str(&bytes[0], bytes.size()); [all...] |
/external/google-breakpad/src/third_party/libdisasm/ |
ia32_invariant.c | 146 int x, type, bytes = 0, size = 0, modrm = 0; local 208 bytes += ia32_invariant_modrm( buf, out, 219 memset( &out[bytes + modrm], X86_WILDCARD_BYTE, 221 bytes += size; 232 memset( &out[bytes + modrm], 235 memcpy( &out[bytes + modrm], 236 &buf[bytes + modrm], size ); 239 bytes += size; 276 return (bytes + modrm); 293 /* copy opcode bytes to buffer * [all...] |
/external/grpc-grpc/third_party/address_sorting/ |
address_sorting.c | 105 uint8_t* bytes = (uint8_t*)ipv6_address; local 106 return bytes[0] == 0xfe && (bytes[1] & 0xc0) == 0xc0; 110 uint8_t* bytes = (uint8_t*)ipv6_address; local 111 return bytes[0] == 0xfe && (bytes[1] & 0xc0) == 0x80; 115 uint8_t* bytes = (uint8_t*)ipv6_address; local 116 return bytes[0] == 0x20 && bytes[1] == 0x02; 120 uint8_t* bytes = (uint8_t*)ipv6_address local 125 uint8_t* bytes = (uint8_t*)ipv6_address; local 131 uint8_t* bytes = (uint8_t*)ipv6_address; local [all...] |
/external/grpc-grpc/third_party/nanopb/ |
pb_encode.c | 178 * for pointer-type string and bytes fields, the array entries are 451 pb_byte_t bytes[4]; local 452 bytes[0] = (pb_byte_t)(val & 0xFF); 453 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF); 454 bytes[2] = (pb_byte_t)((val >> 16) & 0xFF); 455 bytes[3] = (pb_byte_t)((val >> 24) & 0xFF); 456 return pb_write(stream, bytes, 4); 462 pb_byte_t bytes[8]; local 463 bytes[0] = (pb_byte_t)(val & 0xFF); 464 bytes[1] = (pb_byte_t)((val >> 8) & 0xFF) 641 const pb_bytes_array_t *bytes = NULL; local [all...] |
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
GrpcHttp2HeadersUtils.java | 108 byte[] nameBytes = bytes(name); 145 * Returns the header names and values as bytes. An even numbered index contains the 186 : bytes(value); 189 protected static byte[] bytes(AsciiString str) { method in class:GrpcHttp2HeadersUtils.GrpcHttp2InboundHeaders
|