Home
last modified time | relevance | path

Searched refs:bytes_needed (Results 1 – 3 of 3) sorted by relevance

/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc156 size_t bytes_needed = nonce_length / encoder_->symbols_per_byte(); in DoOutputPairing() local
158 uint8_t* random = util::PoloUtil::GenerateRandomBytes(bytes_needed); in DoOutputPairing()
159 nonce_ = new Nonce(random, random + bytes_needed); in DoOutputPairing()
/external/flac/libFLAC/
Dmd5.c493 const size_t bytes_needed = (size_t)channels * (size_t)samples * (size_t)bytes_per_sample; in FLAC__MD5Accumulate() local
501 if (ctx->capacity < bytes_needed) { in FLAC__MD5Accumulate()
502 FLAC__byte *tmp = realloc(ctx->internal_buf.p8, bytes_needed); in FLAC__MD5Accumulate()
505 if (0 == (ctx->internal_buf.p8= safe_malloc_(bytes_needed))) in FLAC__MD5Accumulate()
510 ctx->capacity = bytes_needed; in FLAC__MD5Accumulate()
515 FLAC__MD5Update(ctx, ctx->internal_buf.p8, bytes_needed); in FLAC__MD5Accumulate()
/external/icu/icu4c/source/test/cintltst/
Dnucnvtst.c5384 int32_t rules_length, target_cap, bytes_needed, buff_size; in TestJitterbug981() local
5420 bytes_needed = ucnv_fromUChars(utf8cnv, buff, target_cap, in TestJitterbug981()
5422 target_cap = (bytes_needed > target_cap) ? bytes_needed : target_cap +1; in TestJitterbug981()
5423 if(numNeeded!=0 && numNeeded!= bytes_needed){ in TestJitterbug981()
5427 numNeeded = bytes_needed; in TestJitterbug981()
5442 int32_t target_cap, bytes_needed, numNeeded = 0; in TestJitterbug1293() local
5451 bytes_needed = ucnv_fromUChars(conv,target,256,src,u_strlen(src),&status); in TestJitterbug1293()
5452 target_cap = (bytes_needed > target_cap) ? bytes_needed : target_cap +1; in TestJitterbug1293()
5453 if(numNeeded!=0 && numNeeded!= bytes_needed){ in TestJitterbug1293()
5456 numNeeded = bytes_needed; in TestJitterbug1293()