/third_party/python/Doc/c-api/ |
D | bytearray.rst | 8 .. index:: object: bytearray 13 This subtype of :c:type:`PyObject` represents a Python bytearray object. 18 This instance of :c:type:`PyTypeObject` represents the Python bytearray type; 19 it is the same object as :class:`bytearray` in the Python layer. 27 Return true if the object *o* is a bytearray object or an instance of a 28 subtype of the bytearray type. This function always succeeds. 33 Return true if the object *o* is a bytearray object, but not an instance of a 34 subtype of the bytearray type. This function always succeeds. 42 Return a new bytearray object from any object, *o*, that implements the 50 Create a new bytearray object from *string* and its length, *len*. On [all …]
|
D | concrete.rst | 64 .. XXX sort out unicode, str, bytes and bytearray 69 bytearray.rst
|
/third_party/python/Lib/test/ |
D | test_bytes.py | 206 bytearray(size - 4) 422 for f in bytes, bytearray: 439 b = bytearray([0x1a, 0x2b, 0x30]) 476 self.assertEqual(bytearray([0x1a, 0x2b, 0x30]).hex(), '1a2b30') 549 self.assertEqual(dot_join([bytearray(b"ab"), b"cd"]), b"ab.:cd") 550 self.assertEqual(dot_join([b"ab", bytearray(b"cd")]), b"ab.:cd") 563 dot_join([bytearray(b"ab"), "cd", b"ef"]) 606 self.assertFalse(bytearray().endswith(b"anything")) 830 for fill_type in (bytes, bytearray): 837 for fill_type in (bytes, bytearray): [all …]
|
D | test_audioop.py | 37 self.assertEqual(audioop.max(bytearray(), w), 0) 50 self.assertEqual(audioop.minmax(bytearray(), w), 67 self.assertEqual(audioop.maxpp(bytearray(), w), 0) 77 self.assertEqual(audioop.avg(bytearray(), w), 0) 95 self.assertEqual(audioop.avgpp(bytearray(), w), 0) 107 self.assertEqual(audioop.rms(bytearray(), w), 0) 123 self.assertEqual(audioop.cross(bytearray(), w), -1) 135 self.assertEqual(audioop.add(bytearray(), bytearray(), w), b'') 154 self.assertEqual(audioop.bias(bytearray(), w, bias), b'') 199 self.assertEqual(audioop.lin2lin(bytearray(datas[w]), w, w), [all …]
|
D | test_getargs2.py | 788 self.assertEqual(getargs_c(bytearray(b'a')), 97) 799 self.assertRaises(TypeError, getargs_y, bytearray(b'bytearray')) 808 self.assertEqual(getargs_y_star(bytearray(b'bytearray')), b'bytearray') 817 self.assertRaises(TypeError, getargs_y_hash, bytearray(b'bytearray')) 828 buf = bytearray(b'bytearray') 830 self.assertEqual(buf, bytearray(b'[ytearra]')) 831 buf = bytearray(b'memoryview') 833 self.assertEqual(buf, bytearray(b'[emoryvie]')) 845 self.assertRaises(TypeError, getargs_C, bytearray(b'a')) 855 self.assertRaises(TypeError, getargs_s, bytearray(b'bytearray')) [all …]
|
D | test_codeccallbacks.py | 40 UnicodeDecodeError.__init__(self, "ascii", bytearray(b""), 0, 1, "bad") 46 UnicodeDecodeError.__init__(self, "ascii", bytearray(b""), 0, 1, "bad") 350 ["ascii", bytearray(b"g\xfcrk"), 1, 2, "ouch"], 355 ["ascii", bytearray(b"g\xfcrk"), 1, 3, "ouch"], 409 UnicodeDecodeError("ascii", bytearray(b"\xff"), 0, 1, "ouch") 438 UnicodeDecodeError("ascii", bytearray(b"a\xffb"), 1, 2, "ouch")), 478 UnicodeDecodeError("ascii", bytearray(b"a\xffb"), 1, 2, "ouch")), 504 UnicodeDecodeError("ascii", bytearray(b"\xff"), 0, 1, "ouch") 577 UnicodeDecodeError("ascii", bytearray(b"a" + b + b"b"), 599 UnicodeDecodeError("ascii", bytearray(b"\xff"), 0, 1, "ouch") [all …]
|
D | test_hmac.py | 417 h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"), 581 a, b = bytearray(b"foobar"), bytearray(b"foobar") 585 a, b = bytearray(b"foobar"), bytearray(b"foo") 589 a, b = bytearray(b"foobar"), bytearray(b"foobaz") 593 a, b = bytearray(b"foobar"), b"foobar" 598 a, b = bytearray(b"foobar"), b"foo" 603 a, b = bytearray(b"foobar"), b"foobaz"
|
D | test_format.py | 58 ba_format = bytearray(b_format) 70 ba_output = bytearray(b_output) 324 testcommon(b"%c", bytearray(b"Z"), b"Z") 334 testcommon(b"%b", bytearray(b"def"), b"def") 339 testcommon(b"%s", bytearray(b"def"), b"def") 363 test_exc(b'no format', bytearray(b'1'), TypeError,
|
/third_party/mesa3d/src/vulkan/overlay-layer/ |
D | mesa-overlay-control.py | 13 VERSION_HEADER = bytearray('MesaOverlayControlVersion', 'utf-8') 14 DEVICE_NAME_HEADER = bytearray('DeviceName', 'utf-8') 15 MESA_VERSION_HEADER = bytearray('MesaVersion', 'utf-8') 80 self.cmd = bytearray(4096) 81 self.param = bytearray(4096) 188 conn.send(bytearray(':capture=1;', 'utf-8')) 190 conn.send(bytearray(':capture=0;', 'utf-8'))
|
/third_party/python/Lib/ctypes/test/ |
D | test_frombuffer.py | 46 (c_char * 16).from_buffer(memoryview(bytearray(b"a" * 16))[::-1]) 80 a = [c_char.from_buffer(memoryview(bytearray(b'a')))] 126 self.assertRaises(TypeError, Array.from_buffer, bytearray(10)) 127 self.assertRaises(TypeError, Structure.from_buffer, bytearray(10)) 128 self.assertRaises(TypeError, Union.from_buffer, bytearray(10)) 129 self.assertRaises(TypeError, _CFuncPtr.from_buffer, bytearray(10)) 130 self.assertRaises(TypeError, _Pointer.from_buffer, bytearray(10)) 131 self.assertRaises(TypeError, _SimpleCData.from_buffer, bytearray(10))
|
D | test_buffers.py | 27 self.assertEqual(len(bytearray(create_string_buffer(0))), 0) 28 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
|
/third_party/python/Lib/email/ |
D | quoprimime.py | 84 def header_length(bytearray): argument 94 return sum(len(_QUOPRI_HEADER_MAP[octet]) for octet in bytearray) 97 def body_length(bytearray): argument 104 return sum(len(_QUOPRI_BODY_MAP[octet]) for octet in bytearray)
|
D | base64mime.py | 50 def header_length(bytearray): argument 52 groups_of_3, leftover = divmod(len(bytearray), 3)
|
/third_party/skia/third_party/externals/oboe/samples/drumthumper/src/main/cpp/ |
D | DrumPlayerJNI.cpp | 78 JNIEnv* env, jobject, jbyteArray bytearray, jint index, jfloat pan, jint channels) { in Java_com_plausiblesoftware_drumthumper_DrumPlayer_loadWavAssetNative() argument 79 int len = env->GetArrayLength (bytearray); in Java_com_plausiblesoftware_drumthumper_DrumPlayer_loadWavAssetNative() 82 env->GetByteArrayRegion (bytearray, 0, len, reinterpret_cast<jbyte*>(buf)); in Java_com_plausiblesoftware_drumthumper_DrumPlayer_loadWavAssetNative()
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | bmp_to_nv12.py | 50 converted_pixels = bytearray(pixels) 60 uv_buffer = bytearray(width * height / 2) 70 y_buffer = bytearray(width * height)
|
/third_party/flutter/skia/third_party/externals/angle2/scripts/ |
D | bmp_to_nv12.py | 50 converted_pixels = bytearray(pixels) 60 uv_buffer = bytearray(width * height / 2) 70 y_buffer = bytearray(width * height)
|
/third_party/flatbuffers/python/flatbuffers/ |
D | compat.py | 30 binary_types = (bytes,bytearray) 37 binary_types = (str,bytearray)
|
/third_party/gstreamer/gstplugins_bad/gst/rtmp2/rtmp/ |
D | rtmputils.c | 37 gst_rtmp_byte_array_append_bytes (GByteArray * bytearray, GBytes * bytes) in gst_rtmp_byte_array_append_bytes() argument 43 g_return_if_fail (bytearray); in gst_rtmp_byte_array_append_bytes() 45 offset = bytearray->len; in gst_rtmp_byte_array_append_bytes() 50 g_byte_array_set_size (bytearray, offset + size); in gst_rtmp_byte_array_append_bytes() 51 memcpy (bytearray->data + offset, data, size); in gst_rtmp_byte_array_append_bytes()
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_unix_events.py | 457 self.data = bytearray() 878 self.assertEqual(bytearray(), tr._buffer) 886 self.assertEqual(bytearray(b''), tr._buffer) 894 self.assertEqual(bytearray(b'ta'), tr._buffer) 900 tr._buffer = bytearray(b'previous') 904 self.assertEqual(bytearray(b'previousdata'), tr._buffer) 911 m_write.assert_called_with(5, bytearray(b'data')) 913 self.assertEqual(bytearray(b'data'), tr._buffer) 925 self.assertEqual(bytearray(), tr._buffer) 965 tr._buffer = bytearray(b'data') [all …]
|
D | test_proactor_events.py | 57 self.proactor.recv_into.assert_called_with(self.sock, bytearray(self.buffer_size)) 62 self.loop._proactor.recv_into.assert_called_with(self.sock, bytearray(self.buffer_size)) 75 called_buf = bytearray(self.buffer_size) 78 self.protocol.data_received.assert_called_with(bytearray(buf)) 164 tr._buffer = bytearray(b'data') 383 self.protocol.data_received.assert_called_with(bytearray(msg)) 391 self.protocol.data_received.assert_called_with(bytearray(msgs[1])) 400 self.protocol.data_received.assert_called_with(bytearray(msg)) 407 self.protocol.data_received.assert_called_with(bytearray(msgs[4])) 520 data = bytearray(b'data') [all …]
|
/third_party/python/Doc/library/ |
D | stdtypes.rst | 939 (such as :class:`str`, :class:`bytes` and :class:`bytearray`) also use 1008 concatenation with a :class:`bytearray` object. :class:`bytearray` 1060 object: bytearray 1068 and value restrictions imposed by *s* (for example, :class:`bytearray` only 1493 :term:`bytes-like object` (e.g. :class:`bytes` or :class:`bytearray`). In 1494 this case, if *object* is a :class:`bytes` (or :class:`bytearray`) object, 2411 Binary Sequence Types --- :class:`bytes`, :class:`bytearray`, :class:`memoryview` 2416 object: bytearray 2421 :class:`bytearray`. They are supported by :class:`memoryview` which uses 2549 .. index:: object: bytearray [all …]
|
/third_party/python/Lib/encodings/ |
D | punycode.py | 12 base = bytearray() 80 result = bytearray() 109 result = bytearray()
|
/third_party/curl/tests/ |
D | negtelnetserver.py | 133 buffer = bytearray() 144 for byte_int in bytearray(data): 219 self.tcp.sendall(bytearray(message_ints))
|
/third_party/mesa3d/.gitlab-ci/bare-metal/ |
D | serial_buffer.py | 97 line = bytearray() 122 line = bytearray()
|
/third_party/qrcodegen/python/ |
D | qrcodegen.py | 128 datacodewords = bytearray([0] * (len(bb) // 8)) 188 allcodewords: bytes = self._add_ecc_and_interleave(bytearray(datacodewords)) 342 def _add_ecc_and_interleave(self, data: bytearray) -> bytes: argument 360 dat: bytearray = data[k : k + shortblocklen - blockecclen + (0 if i < numshortblocks else 1)] 369 result = bytearray() 529 result = bytearray([0] * (degree - 1) + [1]) # Start off with the monomial x^0 548 result = bytearray([0] * len(divisor))
|