Searched refs:bytes (Results 51 - 75 of 2331) sorted by relevance

1234567891011>>

/external/kmod/shared/
H A Dstrbuf.c44 tmp = realloc(buf->bytes, sz);
47 buf->bytes = tmp;
54 buf->bytes = NULL;
61 free(buf->bytes);
66 char *bytes; local
68 bytes = realloc(buf->bytes, buf->used + 1);
69 if (!bytes) {
70 free(buf->bytes);
73 bytes[bu
[all...]
H A Dscratchbuf.h12 char *bytes; member in struct:scratchbuf
24 return buf->bytes;
28 .bytes = buf_, \
/external/sl4a/Common/src/org/apache/commons/codec/binary/
H A DStringUtils.java25 * Converts String to and from bytes using the encodings required by the Java specification. These encodings are specified in <a
36 * Encodes the given string into a sequence of bytes using the ISO-8859-1 charset, storing the result into a new
41 * @return encoded bytes
52 * Encodes the given string into a sequence of bytes using the US-ASCII charset, storing the result into a new byte
57 * @return encoded bytes
68 * Encodes the given string into a sequence of bytes using the UTF-16 charset, storing the result into a new byte
73 * @return encoded bytes
84 * Encodes the given string into a sequence of bytes using the UTF-16BE charset, storing the result into a new byte
89 * @return encoded bytes
100 * Encodes the given string into a sequence of bytes usin
183 newString(byte[] bytes, String charsetName) argument
204 newStringIso8859_1(byte[] bytes) argument
218 newStringUsAscii(byte[] bytes) argument
232 newStringUtf16(byte[] bytes) argument
246 newStringUtf16Be(byte[] bytes) argument
260 newStringUtf16Le(byte[] bytes) argument
274 newStringUtf8(byte[] bytes) argument
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DICUBinary.java57 static boolean validate(ByteBuffer bytes) { argument
59 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE);
63 int count = bytes.getInt(bytes.position()); // Do not move the position.
67 // For each item, there is one ToC entry (8 bytes) and a name string
68 // and a data item of at least 16 bytes.
70 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) {
73 if (!startsWithPackageName(bytes, getNameOffset(bytes,
80 startsWithPackageName(ByteBuffer bytes, int start) argument
96 getData(ByteBuffer bytes, CharSequence key) argument
108 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) argument
123 binarySearch(ByteBuffer bytes, CharSequence key) argument
148 getNameOffset(ByteBuffer bytes, int index) argument
156 getDataOffset(ByteBuffer bytes, int index) argument
170 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) argument
268 PackageDataFile(String item, ByteBuffer bytes) argument
362 compareKeys(CharSequence key, ByteBuffer bytes, int offset) argument
381 compareKeys(CharSequence key, byte[] bytes, int offset) argument
556 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) argument
575 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) argument
652 skipBytes(ByteBuffer bytes, int skipLength) argument
658 getString(ByteBuffer bytes, int length, int additionalSkipLength) argument
665 getChars(ByteBuffer bytes, int length, int additionalSkipLength) argument
672 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) argument
679 getInts(ByteBuffer bytes, int length, int additionalSkipLength) argument
686 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) argument
696 sliceWithOrder(ByteBuffer bytes) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DICUBinary.java53 static boolean validate(ByteBuffer bytes) { argument
55 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE);
59 int count = bytes.getInt(bytes.position()); // Do not move the position.
63 // For each item, there is one ToC entry (8 bytes) and a name string
64 // and a data item of at least 16 bytes.
66 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) {
69 if (!startsWithPackageName(bytes, getNameOffset(bytes,
76 startsWithPackageName(ByteBuffer bytes, int start) argument
92 getData(ByteBuffer bytes, CharSequence key) argument
104 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) argument
119 binarySearch(ByteBuffer bytes, CharSequence key) argument
144 getNameOffset(ByteBuffer bytes, int index) argument
152 getDataOffset(ByteBuffer bytes, int index) argument
166 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) argument
264 PackageDataFile(String item, ByteBuffer bytes) argument
358 compareKeys(CharSequence key, ByteBuffer bytes, int offset) argument
377 compareKeys(CharSequence key, byte[] bytes, int offset) argument
552 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) argument
571 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) argument
648 skipBytes(ByteBuffer bytes, int skipLength) argument
654 getString(ByteBuffer bytes, int length, int additionalSkipLength) argument
661 getChars(ByteBuffer bytes, int length, int additionalSkipLength) argument
668 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) argument
675 getInts(ByteBuffer bytes, int length, int additionalSkipLength) argument
682 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) argument
692 sliceWithOrder(ByteBuffer bytes) argument
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
H A DByteArrayFetcher.java13 private final byte[] bytes; field in class:ByteArrayFetcher
16 public ByteArrayFetcher(byte[] bytes, String id) { argument
17 this.bytes = bytes;
23 return new ByteArrayInputStream(bytes);
/external/google-tv-pairing-protocol/cpp/src/polo/encoding/
H A Dhexadecimalencoder.cc34 uint8_t* bytes; local
35 size_t length = polo::util::PoloUtil::HexStringToBytes(secret, bytes);
36 std::vector<uint8_t> decoded(bytes, bytes + length);
37 delete[] bytes;
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
H A DExtensionProfileLevelDescriptor.java33 byte[] bytes; field in class:ExtensionProfileLevelDescriptor
38 bytes = new byte[getSize()];
39 bb.get(bytes);
47 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
H A DDecoderSpecificInfo.java34 byte[] bytes; field in class:DecoderSpecificInfo
39 bytes = new byte[sizeOfInstance];
40 bb.get(bytes);
45 return bytes.length;
49 ByteBuffer out = ByteBuffer.wrap(bytes);
58 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
74 if (!Arrays.equals(bytes, that.bytes)) {
[all...]
/external/google-tv-pairing-protocol/cpp/src/polo/util/
H A Dpoloutil.cc22 const std::string PoloUtil::BytesToHexString(const uint8_t* bytes, argument
25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL);
34 uint8_t*& bytes) {
39 bytes = new uint8_t[length];
40 BN_bn2bin(bn, &bytes[0]);
46 uint8_t*& bytes) {
51 // Initialize the array to 0 so there will be leading null bytes if the
52 // number is less than 4 bytes long.
53 bytes = new uint8_t[4];
55 bytes[
33 HexStringToBytes(const std::string hex_string, uint8_t*& bytes) argument
45 IntToBigEndianBytes(uint32_t value, uint8_t*& bytes) argument
63 BigEndianBytesToInt( const uint8_t* bytes) argument
[all...]
/external/proguard/src/proguard/classfile/constant/
H A DUtf8Constant.java54 // Initially, we're storing the UTF-8 bytes in a byte array.
59 private byte[] bytes; field in class:Utf8Constant
78 this.bytes = null;
84 * Initializes the UTF-8 data with an array of bytes.
86 public void setBytes(byte[] bytes) argument
88 this.bytes = bytes;
94 * Returns the UTF-8 data as an array of bytes.
107 return bytes;
116 this.bytes
244 getStringRepresentation(byte[] bytes) argument
[all...]
/external/valgrind/none/tests/s390x/
H A Dtroo.stdout.exp1 0 bytes translated
3 0 bytes translated
5 5 bytes translated
7 10 bytes translated
9 0 bytes translated
11 1 bytes translated
13 8 bytes translated
/external/webrtc/webrtc/base/
H A Dstream_unittest.cc78 size_t bytes; local
82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
83 EXPECT_EQ(bytes, kBufSize);
85 EXPECT_TRUE(stream->GetPosition(&bytes));
86 EXPECT_EQ(13U, bytes);
90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS);
91 EXPECT_EQ(bytes, kBufSize);
93 EXPECT_TRUE(stream->GetPosition(&bytes));
94 EXPECT_EQ(20U, bytes);
103 size_t bytes; local
[all...]
/external/autotest/client/cros/cellular/mbim_compliance/
H A Dmbim_command_message.py37 _DEFAULTS = {'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
51 _DEFAULTS = {'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
58 'context_type' : mbim_constants.MBIM_CONTEXT_TYPE_NONE.bytes,
72 'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
79 _DEFAULTS = {'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
105 'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
112 _DEFAULTS = {'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
127 'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
156 _DEFAULTS = {'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
195 'device_service_id' : mbim_constants.UUID_BASIC_CONNECT.bytes,
[all...]
/external/google-breakpad/src/common/linux/
H A Dguid_creator.cc49 static uint32_t BytesToUInt32(const uint8_t bytes[]) { argument
50 return ((uint32_t) bytes[0]
51 | ((uint32_t) bytes[1] << 8)
52 | ((uint32_t) bytes[2] << 16)
53 | ((uint32_t) bytes[3] << 24));
56 static void UInt32ToBytes(uint8_t bytes[], uint32_t n) { argument
57 bytes[0] = n & 0xff;
58 bytes[1] = (n >> 8) & 0xff;
59 bytes[2] = (n >> 16) & 0xff;
60 bytes[
[all...]
/external/skia/src/opts/
H A DSkChecksum_opts.h31 static uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t seed) { argument
36 if (bytes >= 24) {
38 // to hash 8 bytes per step. Both 3 and independent are important:
43 size_t steps = bytes/24;
50 bytes %= 24;
54 SkASSERT(bytes < 24);
55 if (bytes >= 16) {
57 bytes -= 8;
61 SkASSERT(bytes < 16);
62 if (bytes
[all...]
/external/valgrind/gdbserver_tests/
H A Dmcleak.stderr.exp2 expecting details 10 bytes reachable
3 10 bytes in 1 blocks are still reachable in loss record ... of ...
8 expecting details +10 bytes lost, +21 bytes reachable
9 expecting details +65 bytes reachable
11 expecting details +10 bytes reachable
12 expecting details -10 bytes reachable, +10 bytes lost
13 expecting details -10 bytes lost, +10 bytes reachabl
[all...]
/external/emma/core/java12/com/vladium/jcd/cls/constant/
H A DCONSTANT_info.java60 public static CONSTANT_info new_CONSTANT_info (final UDataInputStream bytes) argument
63 byte tag = bytes.readByte ();
68 return new CONSTANT_Utf8_info (bytes);
71 return new CONSTANT_Integer_info (bytes);
74 return new CONSTANT_Float_info (bytes);
77 return new CONSTANT_Long_info (bytes);
80 return new CONSTANT_Double_info (bytes);
84 return new CONSTANT_Class_info (bytes);
87 return new CONSTANT_String_info (bytes);
91 return new CONSTANT_Fieldref_info (bytes);
[all...]
/external/c-ares/
H A Dares_writev.c32 size_t bytes = 0; local
45 if (iov[i].iov_len > INT_MAX - bytes)
50 bytes += iov[i].iov_len;
53 if (bytes == 0)
57 buffer = malloc(bytes);
72 result = swrite(s, buffer, bytes);
/external/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator-for-malloc.h19 - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len;
23 - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len {
24 return [self initWithBytesNoCopy:bytes length:len freeWhenDone:1]; // no-warning
29 + (id)somethingNoCopy:(char *)bytes;
30 + (id)somethingNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer;
31 + (id)something:(char *)bytes freeWhenDone:(BOOL)freeBuffer;
/external/libmojo/mojo/edk/js/test/
H A Dhexdump.js13 function dumpArray(bytes) {
15 for (var i = 0; i < bytes.length; ++i) {
16 dumped += hexify(bytes[i], 2);
/external/protobuf/csharp/src/Google.Protobuf/
H A DByteArray.cs48 /// Determines which copy routine to use based on the number of bytes to be copied.
67 /// Reverses the order of bytes in the array
69 internal static void Reverse(byte[] bytes) argument
71 for (int first = 0, last = bytes.Length - 1; first < last; first++, last--)
73 byte temp = bytes[first];
74 bytes[first] = bytes[last];
75 bytes[last] = temp;
/external/swiftshader/third_party/LLVM/test/Scripts/
H A Dcommon_dump.py2 """ Convert the raw data in 'd' to an hex string with a space every 4 bytes.
4 bytes = []
12 bytes.append(hex_byte)
13 return ''.join(bytes).strip()
16 """ Convert the raw data in 'd' to an hex string with a space every 4 bytes.
20 bytes = []
30 bytes.append(hex_byte)
31 return ''.join(bytes).strip()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
H A DIsoTypeWriterVariable.java23 public static void write(long v, ByteBuffer bb, int bytes) { argument
24 switch (bytes) {
41 throw new RuntimeException("I don't know how to read " + bytes + " bytes");
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DNdefRecordTest.java15 byte[] bytes = "mumble".getBytes();
16 NdefRecord ndefRecord = new NdefRecord(bytes);
18 assertSame(ndefRecord.getPayload(), bytes);

Completed in 814 milliseconds

1234567891011>>