/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/ |
D | ByteUtils.java | 95 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 …]
|
D | BinaryOutputCapsule.java | 471 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/ |
D | DirectByteBuffer.java | 37 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 …]
|
D | DirectReadWriteByteBuffer.java | 32 …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()
|
D | DirectReadOnlyByteBuffer.java | 32 …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()
|
D | DirectReadOnlyShortBufferAdapter.java | 46 …is.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyShortBufferAdapter()
|
D | DirectReadOnlyFloatBufferAdapter.java | 47 ….floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyFloatBufferAdapter()
|
D | DirectReadOnlyIntBufferAdapter.java | 47 …this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadOnlyIntBufferAdapter()
|
D | DirectReadWriteFloatBufferAdapter.java | 47 ….floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteFloatBufferAdapter()
|
D | DirectReadWriteIntBufferAdapter.java | 46 …this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteIntBufferAdapter()
|
D | DirectReadWriteShortBufferAdapter.java | 47 …is.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.b… in DirectReadWriteShortBufferAdapter()
|
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
D | ConvertUtils.java | 31 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/ |
D | DNSOutgoing.java | 163 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/ |
D | GZIPSerializer.java | 58 byte[] byteArray = new byte[data.remaining()]; in readObject() 60 data.get(byteArray); in readObject() 62 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(byteArray)); in readObject()
|
D | ZIPSerializer.java | 59 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/ |
D | Relay.java | 57 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/ |
D | ArrayReferenceDebuggee.java | 50 static byte[] byteArray = new byte[10]; field in ArrayReferenceDebuggee 55 byteArray[i] = (byte)i;
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Hex.java | 189 … 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/ |
D | InjectedThing.java | 61 @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/ |
D | BC_CommonByteArray.cpp | 38 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/ |
D | Utf8Benchmark.java | 127 for (byte[] byteArray : byteArrays) { in isWellFormed() 128 if (!Utf8.isWellFormed(byteArray)) { in isWellFormed()
|
/external/caliper/examples/src/main/java/examples/ |
D | CopyArrayBenchmark.java | 247 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/ |
D | wrtjava.cpp | 436 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/ |
D | AbstractNonStreamingHashFunction.java | 145 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/ |
D | BufferTest.java | 470 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()
|