HomeSort by relevance Sort by last modified time
    Searched refs:len (Results 251 - 275 of 13322) sorted by null

<<11121314151617181920>>

  /external/chromium_org/third_party/libjingle/source/talk/base/
helpers.cc 60 virtual bool Init(const void* seed, size_t len) = 0;
61 virtual bool Generate(void* buf, size_t len) = 0;
72 virtual bool Init(const void* seed, size_t len) {
82 RAND_seed(seed, len);
86 virtual bool Generate(void* buf, size_t len) {
90 return (RAND_bytes(reinterpret_cast<unsigned char*>(buf), len) > 0);
103 virtual bool Init(const void* seed, size_t len) {
106 virtual bool Generate(void* buf, size_t len) {
108 static_cast<int>(len)) == SECSuccess);
143 virtual bool Generate(void* buf, size_t len) {
    [all...]
  /external/chromium_org/third_party/opus/src/src/
repacketizer.c 61 int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len)
66 if (len<1) return OPUS_INVALID_PACKET;
76 curr_nb_frames = opus_packet_get_nb_frames(data, len);
85 ret=opus_packet_parse(data, len, &tmp_toc, &rp->frames[rp->nb_frames], &rp->len[rp->nb_frames], NULL);
101 short *len; local
111 len = rp->len+begin;
114 tot_size = 1 + (len[count-1]>=252);
123 tot_size += len[0]+1
    [all...]
  /external/chromium_org/third_party/smhasher/src/
Hashes.cpp 15 void BadHash ( const void * key, int len, uint32_t seed, void * out )
21 for(int i = 0; i < len; i++)
31 void sumhash ( const void * key, int len, uint32_t seed, void * out )
37 for(int i = 0; i < len; i++)
45 void sumhash32 ( const void * key, int len, uint32_t seed, void * out )
51 for(int i = 0; i < len/4; i++)
66 uint32_t MurmurOAAT ( const void * key, int len, uint32_t seed )
72 for(int i = 0; i < len; i++)
82 void MurmurOAAT_test ( const void * key, int len, uint32_t seed, void * out )
84 *(uint32_t*)out = MurmurOAAT(key,len,seed)
    [all...]
  /external/speex/libspeex/
buffer.c 68 EXPORT int speex_buffer_write(SpeexBuffer *st, void *_data, int len)
73 if (len > st->size)
75 data += len-st->size;
76 len = st->size;
78 end = st->write_ptr + len;
88 st->available += len;
94 st->write_ptr += len;
97 return len;
100 EXPORT int speex_buffer_writezeros(SpeexBuffer *st, int len)
106 if (len > st->size
    [all...]
  /external/qemu/hw/
bt-sdp.c 35 int len; member in struct:bt_l2cap_sdp_state_s::sdp_service_record_s::sdp_service_attribute_s
45 size_t len = *(*element) ++ & SDP_DSIZE_MASK; local
51 if (len < SDP_DSIZE_NEXT1)
52 return 1 << len;
53 else if (len == SDP_DSIZE_NEXT1) {
59 } else if (len == SDP_DSIZE_NEXT2) {
64 len = (*(*element) ++) << 8;
65 return len | (*(*element) ++);
71 len = (*(*element) ++) << 24;
72 len |= (*(*element) ++) << 16
599 int len; local
633 int len = 0; local
700 int len = 0; local
    [all...]
  /system/core/liblinenoise/
linenoise.c 187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) {
193 len--;
196 while (plen+len > cols) {
197 len--;
205 if (write(fd,buf,len) == -1) return;
217 size_t len = 0; local
235 if (nread <= 0) return len;
240 return len;
243 return (len == 0) ? -1 : (int)len;
392 size_t len; local
    [all...]
  /external/elfutils/libebl/
eblstrtab.c 75 size_t len; member in struct:Ebl_Strent
126 ret->null.len = 1;
136 morememory (struct Ebl_Strtab *st, size_t len)
138 if (len < ps)
139 len = ps;
141 struct memoryblock *newmem = (struct memoryblock *) malloc (len);
148 st->left = len - offsetof (struct memoryblock, memory);
171 newstring (struct Ebl_Strtab *st, const char *str, size_t len)
180 if (st->left < align + sizeof (struct Ebl_Strent) + len)
182 if (morememory (st, sizeof (struct Ebl_Strent) + len))
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/bio/
b_dump.c 71 int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u),
72 void *u, const char *s, int len)
74 return BIO_dump_indent_cb(cb, u, s, len, 0);
77 int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
78 void *u, const char *s, int len, int indent)
89 for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--)
103 rows=(len/dump_width)
    [all...]
  /external/openssl/crypto/bio/
b_dump.c 71 int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u),
72 void *u, const char *s, int len)
74 return BIO_dump_indent_cb(cb, u, s, len, 0);
77 int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
78 void *u, const char *s, int len, int indent)
89 for(; (len > 0) && ((s[len-1] == ' ') || (s[len-1] == '\0')); len--)
103 rows=(len/dump_width)
    [all...]
  /external/kernel-headers/original/asm-mips/
checksum.h 19 * computes the checksum of a memory block at buff, length len,
30 __wsum csum_partial(const void *buff, int len, __wsum sum);
33 int len, __wsum sum, int *err_ptr);
40 __wsum csum_partial_copy_from_user(const void __user *src, void *dst, int len,
45 len, sum, err_ptr);
53 __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len,
57 if (access_ok(VERIFY_WRITE, dst, len))
59 len, sum, err_ptr);
60 if (len)
71 int len, __wsum sum)
    [all...]
  /external/smack/src/org/xbill/DNS/
DNSInput.java 58 * @param len The number of bytes in the active region.
63 setActive(int len) {
64 if (len > array.length - pos) {
68 end = pos + len;
188 * @param len The number of bytes to copy.
192 readByteArray(byte [] b, int off, int len) throws WireParseException {
193 require(len);
194 System.arraycopy(array, pos, b, off, len);
195 pos += len;
204 readByteArray(int len) throws WireParseException
219 int len = remaining(); local
235 int len = array[pos++] & 0xFF; local
    [all...]
  /device/generic/goldfish/opengl/host/include/libOpenglRender/
IOStream.h 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0;
37 virtual int writeFully(const void* buf, size_t len) = 0;
44 unsigned char *alloc(size_t len) {
46 if (m_buf && len > m_free) {
53 if (!m_buf || len > m_bufsize) {
54 int allocLen = m_bufsize < len ? len : m_bufsize;
66 m_free -= len;
81 const unsigned char *readback(void *buf, size_t len) {
83 return readFully(buf, len);
    [all...]
  /external/chromium/base/
safe_strerror_posix.cc 31 size_t len) {
33 char *rc = (*strerror_r_ptr)(err, buf, len);
38 strncat(buf, rc, len - 1);
54 size_t len) {
61 int result = (*strerror_r_ptr)(err, buf, len);
67 buf[len - 1] = '\0';
87 len,
95 void safe_strerror_r(int err, char *buf, size_t len) {
96 if (buf == NULL || len <= 0) {
103 wrap_posix_strerror_r(&strerror_r, err, buf, len);
    [all...]
  /external/chromium_org/base/
safe_strerror_posix.cc 31 size_t len) {
33 char *rc = (*strerror_r_ptr)(err, buf, len);
38 strncat(buf, rc, len - 1);
54 size_t len) {
61 int result = (*strerror_r_ptr)(err, buf, len);
67 buf[len - 1] = '\0';
87 len,
95 void safe_strerror_r(int err, char *buf, size_t len) {
96 if (buf == NULL || len <= 0) {
103 wrap_posix_strerror_r(&strerror_r, err, buf, len);
    [all...]
  /external/chromium_org/third_party/harfbuzz-ng/src/
hb-icu.cc 190 unsigned int len; local
194 len = 0;
196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
205 if (u_countChar32 (normalized, len) == 1) {
225 int len; local
227 len = unorm2_getRawDecomposition (normalizer, ab, decomposed,
229 if (U_FAILURE (icu_err) || len < 0) return false
249 unsigned int len; local
319 unsigned int len; local
    [all...]
test-would-substitute.cc 57 unsigned int len; local
65 len = g_mapped_file_get_length (mf);
72 len = ftell (f);
74 font_data = (const char *) malloc (len);
75 if (!font_data) len = 0;
76 len = fread ((char *) font_data, 1, len, f);
83 blob = hb_blob_create (font_data, len, mm, user_data, destroy);
96 unsigned int len = argc - 3; local
102 return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, false)
    [all...]
  /external/harfbuzz_ng/src/
hb-icu.cc 190 unsigned int len; local
194 len = 0;
196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
205 if (u_countChar32 (normalized, len) == 1) {
225 int len; local
227 len = unorm2_getRawDecomposition (normalizer, ab, decomposed,
229 if (U_FAILURE (icu_err) || len < 0) return false
249 unsigned int len; local
319 unsigned int len; local
    [all...]
test-would-substitute.cc 57 unsigned int len; local
65 len = g_mapped_file_get_length (mf);
72 len = ftell (f);
74 font_data = (const char *) malloc (len);
75 if (!font_data) len = 0;
76 len = fread ((char *) font_data, 1, len, f);
83 blob = hb_blob_create (font_data, len, mm, user_data, destroy);
96 unsigned int len = argc - 3; local
102 return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, false)
    [all...]
  /external/linux-tools-perf/util/
strbuf.h 17 * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
29 * strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
46 size_t len; member in struct:strbuf
59 return sb->alloc ? sb->alloc - sb->len - 1 : 0;
64 static inline void strbuf_setlen(struct strbuf *sb, size_t len) {
67 assert(len < sb->alloc);
68 sb->len = len;
69 sb->buf[len] = '\0';
75 sb->buf[sb->len++] = c
    [all...]
  /external/wpa_supplicant_8/src/eap_common/
eap_peap_common.c 25 size_t len[5]; local
28 len[0] = 0;
30 len[1] = label_len;
32 len[2] = seed_len;
36 * PRF+(K, S, LEN) = T1 | T2 | ... | Tn
47 len[3] = 1;
49 len[4] = 2;
52 * PRF (K,S,LEN) = T1 | T2 | T3 | T4 | ... where:
53 * T1 = HMAC-SHA1(K, S | LEN | 0x01)
54 * T2 = HMAC-SHA1 (K, T1 | S | LEN | 0x02
    [all...]
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/netfilter/
nfnetlink_compat.h 35 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1))
36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
37 && (nfa)->nfa_len <= (len))
40 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
41 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
50 (skb)->len; })
    [all...]
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter/
nfnetlink_compat.h 35 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1))
36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
37 && (nfa)->nfa_len <= (len))
40 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
41 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
50 (skb)->len; })
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/netfilter/
nfnetlink_compat.h 35 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1))
36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
37 && (nfa)->nfa_len <= (len))
40 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
41 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
50 (skb)->len; })
    [all...]
  /sdk/emulator/opengl/host/include/libOpenglRender/
IOStream.h 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0;
37 virtual int writeFully(const void* buf, size_t len) = 0;
44 unsigned char *alloc(size_t len) {
46 if (m_buf && len > m_free) {
53 if (!m_buf || len > m_bufsize) {
54 int allocLen = m_bufsize < len ? len : m_bufsize;
66 m_free -= len;
81 const unsigned char *readback(void *buf, size_t len) {
83 return readFully(buf, len);
    [all...]
  /system/core/libcutils/
strdup16to8.c 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len)
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len--) {
72 while (len--) {
102 * not just "len".
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len)
146 size_t len; local
    [all...]

Completed in 3344 milliseconds

<<11121314151617181920>>