Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 25 of 54) sorted by relevance

123

/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/
DByteUtils.java95 byte[] byteArray = convertToBytes(value); in writeShort()
97 outputStream.write(byteArray); in writeShort()
103 byte[] byteArray = new byte[2]; in convertToBytes()
105 byteArray[0] = (byte) (value >> 8); in convertToBytes()
106 byteArray[1] = (byte) value; in convertToBytes()
107 return byteArray; in convertToBytes()
120 byte[] byteArray = new byte[2]; in readShort()
123 inputStream.read(byteArray); in readShort()
125 short number = convertShortFromBytes(byteArray); in readShort()
130 public static short convertShortFromBytes(byte[] byteArray) { in convertShortFromBytes() argument
[all …]
DBinaryOutputCapsule.java471 byte[] byteArray = new byte[4]; in writeForBuffer()
472 byteArray[0] = (byte) value; in writeForBuffer()
473 byteArray[1] = (byte) (value >> 8); in writeForBuffer()
474 byteArray[2] = (byte) (value >> 16); in writeForBuffer()
475 byteArray[3] = (byte) (value >> 24); in writeForBuffer()
476 baos.write(byteArray); in writeForBuffer()
589 byte[] byteArray = new byte[2]; in writeForBuffer()
590 byteArray[0] = (byte) value; in writeForBuffer()
591 byteArray[1] = (byte) (value >> 8); in writeForBuffer()
592 baos.write(byteArray); in writeForBuffer()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
DDirectByteBuffer.java37 Int8Array byteArray; field in DirectByteBuffer
49 byteArray = Int8ArrayNative.create(buffer, offset, capacity); in DirectByteBuffer()
53 return byteArray; in getTypedArray()
88 return (byte)byteArray.get(position++); in get()
95 return (byte)byteArray.get(index); in get()
174 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); in loadInt()
179 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); in loadInt()
190 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); in loadLong()
195 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); in loadLong()
204 bytes = (short)(byteArray.get(baseOffset) << 8); in loadShort()
[all …]
DDirectReadWriteByteBuffer.java32 …DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capa… in copy()
33 other.byteArray.byteOffset()); in copy()
75 byteArray.set(i, byteArray.get(position + i)); in compact()
108 byteArray.set(position++, b); in put()
116 byteArray.set(index, b); in put()
138 byteArray.set(i + position, src[off + i]); in put()
215 DirectReadWriteByteBuffer slice = new DirectReadWriteByteBuffer(byteArray.buffer(), remaining(), in slice()
216 byteArray.byteOffset() + position); in slice()
DDirectReadOnlyByteBuffer.java32 …DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.buffer(), other.capaci… in copy()
33 other.byteArray.byteOffset()); in copy()
142 …eadOnlyByteBuffer slice = new DirectReadOnlyByteBuffer(byteArray.buffer(), remaining(), byteArray.… in slice()
DDirectReadOnlyShortBufferAdapter.java46 …is.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyShortBufferAdapter()
DDirectReadOnlyFloatBufferAdapter.java47 ….floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyFloatBufferAdapter()
DDirectReadOnlyIntBufferAdapter.java47 …this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyIntBufferAdapter()
DDirectReadWriteFloatBufferAdapter.java47 ….floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteFloatBufferAdapter()
DDirectReadWriteIntBufferAdapter.java46 …this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteIntBufferAdapter()
DDirectReadWriteShortBufferAdapter.java47 …is.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteShortBufferAdapter()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DConvertUtils.java31 byte[] byteArray = new byte[parseString.length]; in convertStringToByteArray()
32 if (byteArray.length > 0) { in convertStringToByteArray()
37 byteArray[i] = (byte)val; in convertStringToByteArray()
40 return byteArray; in convertStringToByteArray()
49 public static String convertByteArrayToString(byte[] byteArray) { in convertByteArrayToString() argument
51 if (byteArray != null) { in convertByteArrayToString()
52 for (int i = 0; i < byteArray.length; i++) { in convertByteArrayToString()
53 if ((i + 1) != byteArray.length) { in convertByteArrayToString()
54 ret = ret + Integer.valueOf((byteArray[i]&0xFF)) + ","; in convertByteArrayToString()
57 ret = ret + Integer.valueOf((byteArray[i]&0xFF)); in convertByteArrayToString()
/external/jmdns/src/javax/jmdns/impl/
DDNSOutgoing.java163 byte[] byteArray = record.toByteArray(); in writeRecord()
165 writeShort(byteArray.length); in writeRecord()
166 write(byteArray, 0, byteArray.length); in writeRecord()
245 byte[] byteArray = record.toByteArray(); in addQuestion()
246 if (byteArray.length < this.availableSpace()) { in addQuestion()
248 _questionsBytes.write(byteArray, 0, byteArray.length); in addQuestion()
279 byte[] byteArray = record.toByteArray(); in addAnswer()
280 if (byteArray.length < this.availableSpace()) { in addAnswer()
282 _answersBytes.write(byteArray, 0, byteArray.length); in addAnswer()
299 byte[] byteArray = record.toByteArray(); in addAuthorativeAnswer()
[all …]
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
DGZIPSerializer.java58 byte[] byteArray = new byte[data.remaining()]; in readObject()
60 data.get(byteArray); in readObject()
62 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(byteArray)); in readObject()
DZIPSerializer.java59 byte[] byteArray = new byte[data.remaining()]; in readObject()
61 data.get(byteArray); in readObject()
63 ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(byteArray)); in readObject()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java57 private byte[] byteArray; field in Relay
108 byteArray = byteBuffer.array(); in run()
124 bytesRead = transport.read(byteArray, offset, bytesToRead); in run()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ArrayReference/
DArrayReferenceDebuggee.java50 static byte[] byteArray = new byte[10]; field in ArrayReferenceDebuggee
55 byteArray[i] = (byte)i;
/external/apache-http/src/org/apache/commons/codec/binary/
DHex.java189 … byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object; in encode()
190 return encodeHex(byteArray); in encode()
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
DInjectedThing.java61 @Inject byte[] byteArray; field in InjectedThing
130 byte[] byteArray, in InjectedThing()
198 @Inject void byteArray(byte[] byteArray) {} in byteArray() method in InjectedThing
/external/pdfium/xfa/src/fxbarcode/common/
DBC_CommonByteArray.cpp38 CBC_CommonByteArray::CBC_CommonByteArray(uint8_t* byteArray, int32_t size) { in CBC_CommonByteArray() argument
41 FXSYS_memcpy(m_bytes, byteArray, size); in CBC_CommonByteArray()
/external/guava/guava-tests/benchmark/com/google/common/base/
DUtf8Benchmark.java127 for (byte[] byteArray : byteArrays) { in isWellFormed()
128 if (!Utf8.isWellFormed(byteArray)) { in isWellFormed()
/external/caliper/examples/src/main/java/examples/
DCopyArrayBenchmark.java247 byte[] byteArray; field in CopyArrayBenchmark
258 byteArray = new byte[size]; in setUp()
271 byteArray[i] = (byte) num; in setUp()
300 dummy += System.identityHashCode(strategy.copy(byteArray)); in bytes()
/external/icu/icu4c/source/tools/genrb/
Dwrtjava.cpp436 uint8_t* byteArray = NULL; in bytes_write_java() local
443 byteArray = res->fData; in bytes_write_java()
457 if (byteArray[byteIterator] < 128) in bytes_write_java()
459 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]); in bytes_write_java()
463 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256)); in bytes_write_java()
/external/guava/guava/src/com/google/common/hash/
DAbstractNonStreamingHashFunction.java145 return hashBytes(stream.byteArray(), 0, stream.length()); in hash()
154 byte[] byteArray() { in byteArray() method in AbstractNonStreamingHashFunction.ExposedByteArrayOutputStream
/external/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java470 byte[] byteArray = new byte[4]; in bufferInputStreamBulkReads()
472 Arrays.fill(byteArray, (byte) -5); in bufferInputStreamBulkReads()
474 assertEquals(3, in.read(byteArray)); in bufferInputStreamBulkReads()
475 assertEquals("[97, 98, 99, -5]", Arrays.toString(byteArray)); in bufferInputStreamBulkReads()
477 Arrays.fill(byteArray, (byte) -7); in bufferInputStreamBulkReads()
478 assertEquals(-1, in.read(byteArray)); in bufferInputStreamBulkReads()
479 assertEquals("[-7, -7, -7, -7]", Arrays.toString(byteArray)); in bufferInputStreamBulkReads()

123