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

1 2 3 4 5 6 7 8 91011>>

  /external/python/cpython2/Doc/c-api/
bytearray.rst 8 .. index:: object: bytearray
15 This subtype of :c:type:`PyObject` represents a Python bytearray object.
20 This instance of :c:type:`PyTypeObject` represents the Python bytearray type;
21 it is the same object as ``bytearray`` in the Python layer.
28 Return true if the object *o* is a bytearray object or an instance of a
29 subtype of the bytearray type.
34 Return true if the object *o* is a bytearray object, but not an instance of a
35 subtype of the bytearray type.
43 Return a new bytearray object from any object, *o*, that implements the
51 Create a new bytearray object from *string* and its length, *len*. O
    [all...]
  /external/python/cpython3/Doc/c-api/
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.
33 Return true if the object *o* is a bytearray object, but not an instance of a
34 subtype of the bytearray type.
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*. O
    [all...]
  /external/sfntly/cpp/src/sfntly/data/
byte_array.cc 25 const int32_t ByteArray::COPY_BUFFER_SIZE = 8192;
27 ByteArray::~ByteArray() {}
29 int32_t ByteArray::Length() { return filled_length_; }
30 int32_t ByteArray::Size() { return storage_length_; }
32 int32_t ByteArray::SetFilledLength(int32_t filled_length) {
37 int32_t ByteArray::Get(int32_t index) {
43 int32_t ByteArray::Get(int32_t index, ByteVector* b) {
48 int32_t ByteArray::Get(int32_t index,
60 void ByteArray::Put(int32_t index, byte_t b)
    [all...]
growable_memory_byte_array.h 26 class GrowableMemoryByteArray : public ByteArray,
34 virtual int32_t CopyTo(ByteArray* array) { return ByteArray::CopyTo(array); }
35 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length) {
36 return ByteArray::CopyTo(array, offset, length);
39 ByteArray* array,
42 return ByteArray::CopyTo(dst_offset, array, src_offset, length);
44 virtual int32_t CopyTo(OutputStream* os) { return ByteArray::CopyTo(os); }
memory_byte_array.h 24 class MemoryByteArray : public ByteArray, public RefCounted<MemoryByteArray> {
46 virtual int32_t CopyTo(ByteArray* array) { return ByteArray::CopyTo(array); }
47 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length) {
48 return ByteArray::CopyTo(array, offset, length);
51 ByteArray* array,
54 return ByteArray::CopyTo(dst_offset, array, src_offset, length);
56 virtual int32_t CopyTo(OutputStream* os) { return ByteArray::CopyTo(os); }
byte_array.h 30 class ByteArray : virtual public RefCount {
32 virtual ~ByteArray();
86 // @param index the index into the ByteArray
96 // Fully copies this ByteArray to another ByteArray to the extent that the
98 virtual int32_t CopyTo(ByteArray* array);
100 // Copies a segment of this ByteArray to another ByteArray.
102 // @param offset the offset in this ByteArray to start copying from
105 virtual int32_t CopyTo(ByteArray* array, int32_t offset, int32_t length)
    [all...]
  /external/javassist/src/main/javassist/bytecode/
InnerClassesAttribute.java 48 ByteArray.write16bit(0, get(), 0);
54 public int tableLength() { return ByteArray.readU16bit(get(), 0); }
60 return ByteArray.readU16bit(get(), nth * 8 + 2);
82 ByteArray.write16bit(index, get(), nth * 8 + 2);
89 return ByteArray.readU16bit(get(), nth * 8 + 4);
111 ByteArray.write16bit(index, get(), nth * 8 + 4);
118 return ByteArray.readU16bit(get(), nth * 8 + 6);
140 ByteArray.write16bit(index, get(), nth * 8 + 6);
147 return ByteArray.readU16bit(get(), nth * 8 + 8);
155 ByteArray.write16bit(flags, get(), nth * 8 + 8)
    [all...]
LocalVariableAttribute.java 41 ByteArray.write16bit(0, info, 0);
57 ByteArray.write16bit(0, info, 0);
83 ByteArray.write16bit(tableLength() + 1, newInfo, 0);
87 ByteArray.write16bit(startPc, newInfo, size);
88 ByteArray.write16bit(length, newInfo, size + 2);
89 ByteArray.write16bit(nameIndex, newInfo, size + 4);
90 ByteArray.write16bit(descriptorIndex, newInfo, size + 6);
91 ByteArray.write16bit(index, newInfo, size + 8);
100 int index = ByteArray.readU16bit(info, pos + 6);
104 ByteArray.write16bit(cp.addUtf8Info(desc), info, pos + 6)
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
ByteArray.java 24 final class ByteArray {
28 ByteArray(byte[] bytes) {
40 if (!(o instanceof ByteArray)) {
43 ByteArray lhs = (ByteArray) o;
  /external/mdnsresponder/mDNSWindows/DLLX/
DNSSDRecord.cpp 40 std::vector< BYTE > byteArray;
54 ok = VariantToByteArray( &rdata, byteArray );
60 err = DNSServiceUpdateRecord( m_serviceObject->GetSubordRef(), m_rref, flags, ( uint16_t ) byteArray.size(), byteArray.size() > 0 ? &byteArray[ 0 ] : NULL, ttl );
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
BufferedOutputStreamTest.java 168 byte[] byteArray = new byte[10];
234 bos.write(byteArray, -1, -1);
241 bos.write(byteArray, -1, 0);
248 bos.write(byteArray, -1, 1);
255 bos.write(byteArray, 0, -1);
262 bos.write(byteArray, 0, byteArray.length + 1);
269 bos.write(byteArray, 1, byteArray.length);
276 bos.write(byteArray, -1, byteArray.length)
    [all...]
  /external/sl4a/Utils/src/com/googlecode/android_scripting/
ConvertUtils.java 35 byte[] byteArray = new byte[parseString.length];
36 if (byteArray.length > 0) {
41 byteArray[i] = (byte)val;
44 return byteArray;
50 * @param byteArray
53 public static String convertByteArrayToString(byte[] byteArray) {
55 if (byteArray != null) {
56 for (int i = 0; i < byteArray.length; i++) {
57 if ((i + 1) != byteArray.length) {
58 ret = ret + Integer.valueOf((byteArray[i]&0xFF)) + ","
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
StringUtil.java 24 /** Returns true if-and-only-if |byteArray| can be safely printed as ASCII. */
25 public static boolean isAsciiPrintable(byte[] byteArray) {
26 if (byteArray == null) {
30 for (byte b : byteArray) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DeflaterTest.java 71 byte byteArray[] = { 1, 3, 4, 7, 8 };
76 defl.setInput(byteArray);
86 assertEquals(byteArray.length, totalIn);
100 for (int i = 0; i < byteArray.length; i++) {
101 assertEquals(byteArray[i], outPutInf[i]);
104 0, outPutInf[byteArray.length]);
113 byte byteArray[] = { 5, 2, 3, 7, 8 };
120 defl.setInput(byteArray);
130 assertEquals(byteArray.length, totalIn);
144 for (int i = 0; i < byteArray.length; i++)
    [all...]
  /external/python/cpython2/Lib/test/
test_bytes.py 1 """Unit tests for the bytes and bytearray types.
223 # XXX Shouldn't bytes and bytearray agree on what to raise?
240 for f in bytes, bytearray:
257 b = bytearray([0x1a, 0x2b, 0x30])
295 self.assertFalse(bytearray().endswith(b"anything"))
458 type2test = bytearray
461 self.assertRaises(TypeError, hash, bytearray())
473 b = bytearray(20)
492 b = bytearray(b'hello')
495 b = bytearray(b'hello1') # test even number of item
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
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...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
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...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
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...]
  /external/sfntly/cpp/src/test/
test_utils.h 43 static bool Equals(ByteArray* b1,
45 ByteArray* b2,
48 // @param offset1 offset to start comparing the first ByteArray from
49 // @param ba1 the first ByteArray
50 // @param offset2 offset to start comparing the second ByteArray from
51 // @param ba2 the second ByteArray
55 static bool Equals(ByteArray* b1,
57 ByteArray* b2,
84 static int64_t CheckSum(ByteArray* b, int32_t offset, int32_t length);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
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 items
    [all...]
  /packages/apps/SecureElement/src/com/android/se/internal/
ByteArrayConverter.java 108 * @param byteArray The byte array to be hex-encoded.
111 public static String byteArrayToHexString(byte[] byteArray) {
112 if (byteArray == null) {
115 return byteArrayToHexString(byteArray, 0, byteArray.length);
173 * @param byteArray The byte array from where to form the integer.
177 public static int byteArrayToInt(byte[] byteArray) {
178 switch (byteArray.length) {
182 return (byteArray[0] & 0xFF);
184 return (byteArray[0] & 0xFF) << 8 | (byteArray[1] & 0xFF)
    [all...]
  /dalvik/dx/src/com/android/dx/cf/attrib/
RawAttribute.java 20 import com.android.dx.util.ByteArray;
27 private final ByteArray data;
42 public RawAttribute(String name, ByteArray data, ConstantPool pool) {
54 * Constructs an instance from a sub-array of a {@link ByteArray}.
62 public RawAttribute(String name, ByteArray data, int offset,
72 public ByteArray getData() {
  /external/python/cpython3/Lib/test/
test_getargs2.py 694 self.assertEqual(getargs_c(bytearray(b'a')), 97)
705 self.assertRaises(TypeError, getargs_y, bytearray(b'bytearray'))
714 self.assertEqual(getargs_y_star(bytearray(b'bytearray')), b'bytearray')
723 self.assertRaises(TypeError, getargs_y_hash, bytearray(b'bytearray'))
734 buf = bytearray(b'bytearray')
    [all...]
  /external/python/cpython2/Lib/test/crashers/
buffer_mutate.py 6 # underlying the buffer is mutated (here a bytearray object).
25 a = bytearray("test"*n)

Completed in 3746 milliseconds

1 2 3 4 5 6 7 8 91011>>