Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 7871) sorted by relevance

12345678910>>...315

/external/angle/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc189 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
190 ++state->recursion_depth; in ComplexityGuard()
191 ++state->steps; in ComplexityGuard()
256 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
258 state->mangled_begin = mangled; in InitState()
259 state->out = out; in InitState()
260 state->out_end_idx = out_size; in InitState()
261 state->recursion_depth = 0; in InitState()
262 state->steps = 0; in InitState()
264 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc189 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
190 ++state->recursion_depth; in ComplexityGuard()
191 ++state->steps; in ComplexityGuard()
256 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
258 state->mangled_begin = mangled; in InitState()
259 state->out = out; in InitState()
260 state->out_end_idx = out_size; in InitState()
261 state->recursion_depth = 0; in InitState()
262 state->steps = 0; in InitState()
264 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/openscreen/third_party/abseil/src/absl/debugging/internal/
Ddemangle.cc189 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
190 ++state->recursion_depth; in ComplexityGuard()
191 ++state->steps; in ComplexityGuard()
256 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
258 state->mangled_begin = mangled; in InitState()
259 state->out = out; in InitState()
260 state->out_end_idx = out_size; in InitState()
261 state->recursion_depth = 0; in InitState()
262 state->steps = 0; in InitState()
264 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/libtextclassifier/abseil-cpp/absl/debugging/internal/
Ddemangle.cc189 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
190 ++state->recursion_depth; in ComplexityGuard()
191 ++state->steps; in ComplexityGuard()
256 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
258 state->mangled_begin = mangled; in InitState()
259 state->out = out; in InitState()
260 state->out_end_idx = out_size; in InitState()
261 state->recursion_depth = 0; in InitState()
262 state->steps = 0; in InitState()
264 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/zstd/zlibWrapper/
Dgzread.c32 local int gz_load(state, buf, len, have) in gz_load() argument
33 gz_statep state; in gz_load()
46 ret = read(state.state->fd, buf + *have, get);
52 gz_error(state, Z_ERRNO, zstrerror());
56 state.state->eof = 1;
67 local int gz_avail(state) in gz_avail() argument
68 gz_statep state; in gz_avail()
71 z_streamp strm = &(state.state->strm);
73 if (state.state->err != Z_OK && state.state->err != Z_BUF_ERROR)
75 if (state.state->eof == 0) {
[all …]
Dgzwrite.c22 local int gz_init(state) in gz_init() argument
23 gz_statep state; in gz_init()
26 z_streamp strm = &(state.state->strm);
29 state.state->in = (unsigned char*)malloc(state.state->want << 1);
30 if (state.state->in == NULL) {
31 gz_error(state, Z_MEM_ERROR, "out of memory");
36 if (!state.state->direct) {
38 state.state->out = (unsigned char*)malloc(state.state->want);
39 if (state.state->out == NULL) {
40 free(state.state->in);
[all …]
Dgzlib.c78 local void gz_reset(state) in gz_reset() argument
79 gz_statep state; in gz_reset()
81 state.state->x.have = 0; /* no output data available */
82 if (state.state->mode == GZ_READ) { /* for reading ... */
83 state.state->eof = 0; /* not at end of file */
84 state.state->past = 0; /* have not read past end yet */
85 state.state->how = LOOK; /* look for gzip header */
87 state.state->seek = 0; /* no seek request pending */
88 gz_error(state, Z_OK, NULL); /* clear error */
89 state.state->x.pos = 0; /* no uncompressed data yet */
[all …]
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc188 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
189 ++state->recursion_depth; in ComplexityGuard()
190 ++state->steps; in ComplexityGuard()
255 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
257 state->mangled_begin = mangled; in InitState()
258 state->out = out; in InitState()
259 state->out_end_idx = out_size; in InitState()
260 state->recursion_depth = 0; in InitState()
261 state->steps = 0; in InitState()
263 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/abseil-cpp/absl/debugging/internal/
Ddemangle.cc188 explicit ComplexityGuard(State *state) : state_(state) { in ComplexityGuard() argument
189 ++state->recursion_depth; in ComplexityGuard()
190 ++state->steps; in ComplexityGuard()
255 static void InitState(State *state, const char *mangled, char *out, in InitState() argument
257 state->mangled_begin = mangled; in InitState()
258 state->out = out; in InitState()
259 state->out_end_idx = out_size; in InitState()
260 state->recursion_depth = 0; in InitState()
261 state->steps = 0; in InitState()
263 state->parse_state.mangled_idx = 0; in InitState()
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/
Dinflate.c46 struct inflate_state *state; in inflateStateCheck() local
49 state = (struct inflate_state *)strm->state; in inflateStateCheck()
50 if (state == NULL || state->strm != strm || state->mode < HEAD || state->mode > SYNC) in inflateStateCheck()
56 struct inflate_state *state; in PREFIX() local
60 state = (struct inflate_state *)strm->state; in PREFIX()
61 strm->total_in = strm->total_out = state->total = 0; in PREFIX()
63 if (state->wrap) /* to support ill-conceived Java test suite */ in PREFIX()
64 strm->adler = state->wrap & 1; in PREFIX()
65 state->mode = HEAD; in PREFIX()
66 state->check = ADLER32_INITIAL_VALUE; in PREFIX()
[all …]
Dgzread.c22 static int gz_load(gz_state *state, unsigned char *buf, unsigned len, unsigned *have) { in gz_load() argument
27 ret = read(state->fd, buf + *have, len - *have); in gz_load()
33 gz_error(state, Z_ERRNO, zstrerror()); in gz_load()
37 state->eof = 1; in gz_load()
48 static int gz_avail(gz_state *state) { in gz_avail() argument
50 PREFIX3(stream) *strm = &(state->strm); in gz_avail()
52 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gz_avail()
54 if (state->eof == 0) { in gz_avail()
56 unsigned char *p = state->in; in gz_avail()
63 if (gz_load(state, state->in + strm->avail_in, state->size - strm->avail_in, &got) == -1) in gz_avail()
[all …]
/external/libxml2/
Dxzlib.c89 xz_error(xz_statep state, int err, const char *msg) in xz_error() argument
92 if (state->msg != NULL) { in xz_error()
93 if (state->err != LZMA_MEM_ERROR) in xz_error()
94 xmlFree(state->msg); in xz_error()
95 state->msg = NULL; in xz_error()
99 state->err = err; in xz_error()
105 state->msg = (char *) msg; in xz_error()
110 if ((state->msg = in xz_error()
111 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) { in xz_error()
112 state->err = LZMA_MEM_ERROR; in xz_error()
[all …]
/external/libwebsockets/win32port/zlib/
Dinflate.c95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
113 state->mode = HEAD;
114 state->last = 0;
115 state->havedict = 0;
116 state->dmax = 32768U;
117 state->head = Z_NULL;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
31 ret = read(state->fd, buf + *have, len - *have);
37 gz_error(state, Z_ERRNO, zstrerror());
41 state->eof = 1;
50 local int gz_avail(state) in gz_avail() argument
51 gz_statep state; in gz_avail()
53 z_streamp strm = &(state->strm);
55 if (state->err != Z_OK)
57 if (state->eof == 0) {
[all …]
/external/angle/third_party/zlib/contrib/optimizations/
Dinflate.c97 local void fixedtables OF((struct inflate_state FAR *state));
109 struct inflate_state FAR *state; local
113 state = (struct inflate_state FAR *)strm->state;
114 if (state == Z_NULL || state->strm != strm ||
115 state->mode < HEAD || state->mode > SYNC)
123 struct inflate_state FAR *state; local
126 state = (struct inflate_state FAR *)strm->state;
127 strm->total_in = strm->total_out = state->total = 0;
129 if (state->wrap) /* to support ill-conceived Java test suite */
130 strm->adler = state->wrap & 1;
[all …]
/external/zlib/contrib/optimizations/
Dinflate.c97 local void fixedtables OF((struct inflate_state FAR *state));
109 struct inflate_state FAR *state; local
113 state = (struct inflate_state FAR *)strm->state;
114 if (state == Z_NULL || state->strm != strm ||
115 state->mode < HEAD || state->mode > SYNC)
123 struct inflate_state FAR *state; local
126 state = (struct inflate_state FAR *)strm->state;
127 strm->total_in = strm->total_out = state->total = 0;
129 if (state->wrap) /* to support ill-conceived Java test suite */
130 strm->adler = state->wrap & 1;
[all …]
/external/zlib/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
/external/angle/third_party/zlib/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
/external/rust/crates/libz-sys/src/zlib/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
/external/python/cpython2/Modules/zlib/
Dinflate.c96 local void fixedtables OF((struct inflate_state FAR *state));
108 struct inflate_state FAR *state; local
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
122 struct inflate_state FAR *state; local
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
[all …]
Dgzread.c21 local int gz_load(state, buf, len, have) in gz_load() argument
22 gz_statep state; in gz_load()
35 ret = read(state->fd, buf + *have, get);
41 gz_error(state, Z_ERRNO, zstrerror());
45 state->eof = 1;
56 local int gz_avail(state) in gz_avail() argument
57 gz_statep state; in gz_avail()
60 z_streamp strm = &(state->strm);
62 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
64 if (state->eof == 0) {
[all …]
/external/freetype/src/lzw/
Dftzopen.c29 ft_lzwstate_refill( FT_LzwState state ) in ft_lzwstate_refill() argument
34 if ( state->in_eof ) in ft_lzwstate_refill()
37 count = FT_Stream_TryRead( state->source, in ft_lzwstate_refill()
38 state->buf_tab, in ft_lzwstate_refill()
39 state->num_bits ); /* WHY? */ in ft_lzwstate_refill()
41 state->buf_size = (FT_UInt)count; in ft_lzwstate_refill()
42 state->buf_total += count; in ft_lzwstate_refill()
43 state->in_eof = FT_BOOL( count < state->num_bits ); in ft_lzwstate_refill()
44 state->buf_offset = 0; in ft_lzwstate_refill()
46 state->buf_size <<= 3; in ft_lzwstate_refill()
[all …]

12345678910>>...315