Home
last modified time | relevance | path

Searched refs:bytes (Results 1726 - 1750 of 2529) sorted by relevance

1...<<61626364656667686970>>...102

/third_party/python/Modules/
H A D_tkinter.c783 "the string representation of this object, either as str or bytes");
934 PyErr_SetString(PyExc_OverflowError, "bytes object is too long"); in AsObj()
1098 unsigned char *bytes; in fromBignumObj() local
1108 bytes = PyMem_Malloc(numBytes); in fromBignumObj()
1109 if (bytes == NULL) { in fromBignumObj()
1114 err = mp_to_unsigned_bin_n(&bigValue, bytes, &numBytes); in fromBignumObj()
1116 err = mp_to_ubin(&bigValue, bytes, numBytes, NULL); in fromBignumObj()
1120 PyMem_Free(bytes); in fromBignumObj()
1123 res = _PyLong_FromByteArray(bytes, numBytes, in fromBignumObj()
1126 PyMem_Free(bytes); in fromBignumObj()
[all...]
H A Dossaudiodev.c514 /* wrote rv bytes */ in oss_writeall()
693 return PyLong_FromLong((ai.fragstotal * ai.fragsize - ai.bytes) / in oss_obufcount()
716 return PyLong_FromLong(ai.bytes / (ssize * nchannels)); in oss_obuffree()
736 return Py_BuildValue("iii", info.bytes, info.blocks, info.ptr); in oss_getptr()
/third_party/python/Modules/_io/
H A Dtextio.c670 // ascii unicode, bytes, or list of them.
675 * next_input is the chunk of input bytes that comes next after the
889 _textiowrapper_decode(PyObject *decoder, PyObject *bytes, int eof) in _textiowrapper_decode() argument
894 chars = _PyIncrementalNewlineDecoder_decode(decoder, bytes, eof); in _textiowrapper_decode()
896 chars = PyObject_CallMethodObjArgs(decoder, &_Py_ID(decode), bytes, in _textiowrapper_decode()
1568 // NOTE: We cleared buffer but we don't know how many bytes are actually written in _textiowrapper_writeflush()
1648 "encoder should return a bytes object, not '%.200s'", in _io_TextIOWrapper_write_impl()
1795 * len(dec_buffer) bytes ago with decoder state (b'', dec_flags). in textiowrapper_read_chunk()
1813 "bytes object, not '%.200s'", in textiowrapper_read_chunk()
1840 "underlying %s() should have returned a bytes in textiowrapper_read_chunk()
1914 PyObject *bytes = PyObject_CallMethodNoArgs(self->buffer, &_Py_ID(read)); _io_TextIOWrapper_read_impl() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Datrac3.c32 * bytes provided in the containers above.
160 static int decode_bytes(const uint8_t *input, uint8_t *out, int bytes) in decode_bytes() argument
173 bytes += 3 + off; in decode_bytes()
174 for (i = 0; i < bytes / 4; i++) in decode_bytes()
804 "Frame too small (%d bytes). Truncated file?\n", buf_size); in atrac3_decode_frame()
/third_party/cups-filters/filter/
H A Dgstoraster.c78 /* get the first few bytes of the file */ in parse_doc_type()
597 size_t bytes; in count_pages() local
610 bytes = fread(output, 1, 31, pd); in count_pages()
613 if (bytes <= 0 || sscanf(output, "%d", &pagecount) < 1) in count_pages()
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationRegressionTest.java1191 byte[] bytes = sortk1.toByteArray(); in printKey()
1196 for(int i=0;i<bytes.length;i++) { in printKey()
1197 sb.append(" 0x"+Integer.toHexString((bytes[i])&0xff)); in printKey()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
H A DCollationRegressionTest.java1194 byte[] bytes = sortk1.toByteArray(); in printKey()
1199 for(int i=0;i<bytes.length;i++) { in printKey()
1200 sb.append(" 0x"+Integer.toHexString((bytes[i])&0xff)); in printKey()
/third_party/icu/icu4c/source/test/intltest/
H A Dstrtest.cpp578 virtual void Append(const char *bytes, int32_t n) override {
579 if(fOutbuf != bytes) {
580 memcpy(fOutbuf, bytes, n);
H A Dnumbertest_decimalquantity.cpp137 assertToStringAndHealth(fq, u"<DecimalQuantity 0:0 bytes 999999999999999999E0>");
139 assertToStringAndHealth(fq, u"<DecimalQuantity 0:0 bytes 99999999999999999E0>");
175 assertToStringAndHealth(a, u"<DecimalQuantity 0:0 bytes 1234567890123456789E0>");
176 assertToStringAndHealth(b, u"<DecimalQuantity 0:0 bytes 1234567890123456789E0>");
178 assertToStringAndHealth(c, u"<DecimalQuantity 0:0 bytes 1234567890123456789E0>");
180 assertToStringAndHealth(c, u"<DecimalQuantity 0:0 bytes 9876543210987654321E0>");
182 assertToStringAndHealth(b, u"<DecimalQuantity 0:0 bytes 1234567890123456789E0>");
183 assertToStringAndHealth(c, u"<DecimalQuantity 0:0 bytes 1234567890123456789E0>");
187 assertToStringAndHealth(c, u"<DecimalQuantity 0:0 bytes 876543210987654321E0>");
189 assertToStringAndHealth(a, u"<DecimalQuantity 0:0 bytes 87654321098765432
[all...]
/third_party/node/deps/v8/src/parsing/
H A Dpreparse-data.cc146 void PreparseDataBuilder::ByteData::Reserve(size_t bytes) { in Reserve() argument
147 // Make sure we have at least {bytes} capacity left in the buffer_. in Reserve()
150 if (capacity >= bytes) return; in Reserve()
151 size_t delta = bytes - capacity; in Reserve()
/third_party/node/deps/openssl/openssl/providers/implementations/rands/
H A Ddrbg.c153 /* Figure out how many bytes we need */ in ossl_drbg_get_seed()
198 size_t bytes; in get_entropy() local
241 bytes = drbg->parent_get_seed(drbg->parent, pout, drbg->strength, in get_entropy()
245 return bytes; in get_entropy()
606 * Generate |outlen| bytes into the buffer at |out|. Reseed if we need
700 * Optionally, a |buffer| of |len| random bytes can be passed,
/third_party/qrcodegen/cpp/
H A Dqrcodegen.cpp134 vector<uint8_t> bytes; in makeSegments() local
136 bytes.push_back(static_cast<uint8_t>(*text)); in makeSegments()
137 result.push_back(makeBytes(bytes)); in makeSegments()
306 // Pad with alternating bytes until data capacity is reached in encodeSegments()
310 // Pack bits into bytes in big endian in encodeSegments()
522 // Interleave (not concatenate) the bytes from every block into a single sequence in addEccAndInterleave()
/third_party/python/Lib/
H A Dnntplib.py57 # - NNTP.post() and NNTP.ihave() accept file objects, bytes-like objects and
151 "subject", "from", "date", "message-id", "references", ":bytes", ":lines"]
155 'bytes': ':bytes',
175 if isinstance(v, bytes):
189 # Metadata name (e.g. ":bytes")
303 # However, some multi-line data blocks can contain arbitrary bytes (for
306 # data will therefore only accept and produce bytes objects.
446 The `line` must be a bytes-like object."""
463 Returns a bytes objec
[all...]
H A Dplistlib.py15 To work with plist data in bytes objects, you can use loads()
19 dictionaries (but only with string keys), Data, bytes, bytearray, or
165 "use bytes instead")
359 elif isinstance(value, (bytes, bytearray)):
629 _scalars = (str, int, float, datetime.datetime, bytes)
784 elif isinstance(value, (bytes, bytearray)):
888 """Read a .plist file from a bytes object.
907 """Return a bytes object with the contents for a .plist file.
H A Dpprint.py343 _dispatch[bytes.__repr__] = _pprint_bytes
348 self._pprint_bytes(bytes(object), stream, indent + 10,
632 _builtin_scalars = frozenset({str, bytes, bytearray, float, complex,
/third_party/skia/src/codec/
H A DSkJpegCodec.cpp152 size_t bytes = marker->data_length - kICCMarkerHeaderSize; in read_color_profile() local
153 memcpy(dst, src, bytes); in read_color_profile()
154 dst = SkTAddOffset<void>(dst, bytes); in read_color_profile()
288 * Return the row bytes of a particular image type and width
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DContext.cpp56 void *Context::operator new(size_t bytes) in operator new() argument
58 return allocate((unsigned int)bytes); in operator new()
61 void Context::operator delete(void *pointer, size_t bytes) in operator delete() argument
/third_party/openssl/providers/implementations/rands/
H A Ddrbg.c153 /* Figure out how many bytes we need */ in ossl_drbg_get_seed()
198 size_t bytes; in get_entropy() local
241 bytes = drbg->parent_get_seed(drbg->parent, pout, drbg->strength, in get_entropy()
245 return bytes; in get_entropy()
606 * Generate |outlen| bytes into the buffer at |out|. Reseed if we need
700 * Optionally, a |buffer| of |len| random bytes can be passed,
/third_party/python/Lib/test/
H A Dtest_marshal.py195 self.assertEqual(type(new), bytes)
201 self.assertEqual(type(new), bytes)
228 c = bytes([i])
H A Dtest_int.py323 class CustomBytes(bytes): pass
327 bytes,
345 if isinstance(x, (str, bytes, bytearray)):
/third_party/alsa-lib/src/pcm/
H A Dpcm_ioplug.c247 int time, int size, int bytes) in refine_time_and_size()
258 /* bytes = size * framebits / 8 */ in refine_time_and_size()
259 err = rule_muldivk(params, bytes, size, in refine_time_and_size()
269 int time, int size, int bytes) in refine_back_time_and_size()
273 /* size = bytes * 8 / framebits */ in refine_back_time_and_size()
274 err = rule_mulkdiv(params, size, bytes, 8, SND_PCM_HW_PARAM_FRAME_BITS); in refine_back_time_and_size()
246 refine_time_and_size(snd_pcm_hw_params_t *params, int time, int size, int bytes) refine_time_and_size() argument
268 refine_back_time_and_size(snd_pcm_hw_params_t *params, int time, int size, int bytes) refine_back_time_and_size() argument
/third_party/backends/backend/
H A Dst400.c195 struct { SANE_Byte bytes[96]; } inqdata; in st400_inquiry() member
206 DBG(DSCSI, "SCSI: sending INQUIRY (%lu bytes)\n", (u_long)inqlen); in st400_inquiry()
208 DBG(DSCSI, "SCSI: result=%s (%lu bytes)\n", sane_strstatus(status), (u_long)inqlen); in st400_inquiry()
225 fwrite(inqdata.bytes, 1, inqlen, fp); in st400_inquiry()
237 if( str_at_offset(model->inq_vendor, model->inq_voffset, inqdata.bytes) && str_at_offset(model->inq_model, model->inq_moffset, inqdata.bytes) ) { in st400_inquiry()
369 DBG(DSCSI, "SCSI: sending READ10 (%lu bytes)\n", (u_long)(*lenP)); in st400_read10()
371 DBG(DSCSI, "SCSI: result=%s (%lu bytes)\n", sane_strstatus(status), (u_long)(*lenP)); in st400_read10()
1084 * copy the bytes from the scanner to the SANE buffer in sane_get_parameters()
1136 DBG(DVAR, "allocating %lu bytes buffe in sane_start()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DRuleBasedBreakIterator.java100 * @param bytes a buffer supplying the compiled binary rules.
107 ByteBuffer bytes, boolean phraseBreaking) throws IOException { in getInstanceFromCompiledRules()
108 RuleBasedBreakIterator instance = getInstanceFromCompiledRules(bytes); in getInstanceFromCompiledRules()
123 * @param bytes a buffer supplying the compiled binary rules.
130 public static RuleBasedBreakIterator getInstanceFromCompiledRules(ByteBuffer bytes) throws IOException { in getInstanceFromCompiledRules() argument
132 This.fRData = RBBIDataWrapper.get(bytes); in getInstanceFromCompiledRules()
106 getInstanceFromCompiledRules( ByteBuffer bytes, boolean phraseBreaking) getInstanceFromCompiledRules() argument
/third_party/json/tests/src/
H A Dunit-regression1.cpp344 std::string bytes{"\x00" "asdf\n", 6};
347 j["binary string"] = bytes;
355 std::string bytes{0x7, 0x7};
357 j["string"] = bytes;
/third_party/jinja2/
H A Dfilters.py683 bytes = float(value)
696 if bytes == 1:
698 elif bytes < base:
699 return f"{int(bytes)} Bytes"
704 if bytes < unit:
705 return f"{base * bytes / unit:.1f} {prefix}"
707 return f"{base * bytes / unit:.1f} {prefix}"

Completed in 52 milliseconds

1...<<61626364656667686970>>...102