HomeSort by relevance Sort by last modified time
    Searched refs:bytearray (Results 1 - 25 of 52) sorted by null

1 2 3

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_base64.py 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
39 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
122 eq(base64.b64decode(bytearray("YWJj")), "abc")
136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA='
    [all...]
test_bytes.py 1 """Unit tests for the bytes and bytearray types.
225 # XXX Shouldn't bytes and bytearray agree on what to raise?
242 for f in bytes, bytearray:
259 b = bytearray([0x1a, 0x2b, 0x30])
297 self.assertFalse(bytearray().endswith(b"anything"))
523 type2test = bytearray
526 self.assertRaises(TypeError, hash, bytearray())
538 b = bytearray(20)
557 b = bytearray(b'hello')
560 b = bytearray(b'hello1') # test even number of item
    [all...]
test_memoryio.py 418 b = bytearray(b"hello")
425 b = bytearray(b"hello world")
429 b = bytearray(b"")
442 b = bytearray()
619 bytearray(state[0]) # Check if state[0] supports the buffer interface.
629 memio.__setstate__((bytearray(b"no error"), 0, None))
test_iterlen.py 229 b = bytearray(range(10))
test_binascii.py 222 type2test = bytearray
test_io.py 275 self.assertEqual(f.write(bytearray(b" world\n\n\n")), 9)
288 data = bytearray(data)
297 self.assertEqual(f.readinto(bytearray(b"x")), 0)
301 self.assertEqual(f.readinto(bytearray()), 0)
828 b = bytearray(2)
905 s = bytes(bytearray(l))
934 c = bytes(bytearray([i]))
    [all...]
test_ssl.py 200 self.assertRaises(socket.error, ss.recv_into, bytearray(b'x'))
202 self.assertRaises(socket.error, ss.recvfrom_into, bytearray(b'x'), 1)
    [all...]
test_memoryview.py 251 rw_type = bytearray
test_audioop.py 307 data2 = bytearray(2 * len(data1))
319 data2 = bytearray(2 * len(data1))
test_sys.py 531 # bytearray
534 x = bytearray(sample)
537 check(iter(bytearray()), size('PP'))
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_base64.py 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
39 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
122 eq(base64.b64decode(bytearray("YWJj")), "abc")
136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA='
    [all...]
test_bytes.py 1 """Unit tests for the bytes and bytearray types.
225 # XXX Shouldn't bytes and bytearray agree on what to raise?
242 for f in bytes, bytearray:
259 b = bytearray([0x1a, 0x2b, 0x30])
297 self.assertFalse(bytearray().endswith(b"anything"))
523 type2test = bytearray
526 self.assertRaises(TypeError, hash, bytearray())
538 b = bytearray(20)
557 b = bytearray(b'hello')
560 b = bytearray(b'hello1') # test even number of item
    [all...]
test_memoryio.py 418 b = bytearray(b"hello")
425 b = bytearray(b"hello world")
429 b = bytearray(b"")
442 b = bytearray()
619 bytearray(state[0]) # Check if state[0] supports the buffer interface.
629 memio.__setstate__((bytearray(b"no error"), 0, None))
test_iterlen.py 229 b = bytearray(range(10))
test_binascii.py 222 type2test = bytearray
test_io.py 275 self.assertEqual(f.write(bytearray(b" world\n\n\n")), 9)
288 data = bytearray(data)
297 self.assertEqual(f.readinto(bytearray(b"x")), 0)
301 self.assertEqual(f.readinto(bytearray()), 0)
828 b = bytearray(2)
905 s = bytes(bytearray(l))
934 c = bytes(bytearray([i]))
    [all...]
test_ssl.py 200 self.assertRaises(socket.error, ss.recv_into, bytearray(b'x'))
202 self.assertRaises(socket.error, ss.recvfrom_into, bytearray(b'x'), 1)
    [all...]
test_memoryview.py 251 rw_type = bytearray
  /external/chromium_org/third_party/skia/src/utils/
SkBitmapHasher.cpp 27 * Return the first 8 bytes of a bytearray, encoded as a little-endian uint64.
29 static inline uint64_t first_8_bytes_as_uint64(const uint8_t *bytearray) {
30 return SkEndian_SwapLE64(*(reinterpret_cast<const uint64_t *>(bytearray)));
  /external/skia/src/utils/
SkBitmapHasher.cpp 27 * Return the first 8 bytes of a bytearray, encoded as a little-endian uint64.
29 static inline uint64_t first_8_bytes_as_uint64(const uint8_t *bytearray) {
30 return SkEndian_SwapLE64(*(reinterpret_cast<const uint64_t *>(bytearray)));
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_buffers.py 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0)
25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_buffers.py 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0)
25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
  /external/chromium_org/tools/clang/scripts/
run_tool.py 204 contents = bytearray(f.read())
239 contents: A bytearray with the deletion already applied.
240 offset: The offset in the bytearray where the deleted range used to be.
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
_pyio.py 149 It is also possible to use a string or bytearray as a file for both
479 res = bytearray()
551 b = bytearray(n.__index__())
560 res = bytearray()
790 buf = bytearray()
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
_pyio.py 149 It is also possible to use a string or bytearray as a file for both
479 res = bytearray()
551 b = bytearray(n.__index__())
560 res = bytearray()
790 buf = bytearray()
    [all...]

Completed in 557 milliseconds

1 2 3