Searched refs:byteArray (Results 1 - 25 of 33) sorted by relevance

12

/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/
H A DByteUtils.java95 byte[] byteArray = convertToBytes(value);
97 outputStream.write(byteArray);
103 byte[] byteArray = new byte[2];
105 byteArray[0] = (byte) (value >> 8);
106 byteArray[1] = (byte) value;
107 return byteArray;
120 byte[] byteArray = new byte[2];
123 inputStream.read(byteArray);
125 short number = convertShortFromBytes(byteArray);
130 public static short convertShortFromBytes(byte[] byteArray) { argument
134 convertShortFromBytes(byte[] byteArray, int offset) argument
192 convertIntFromBytes(byte[] byteArray) argument
196 convertIntFromBytes(byte[] byteArray, int offset) argument
387 convertFloatFromBytes(byte[] byteArray) argument
390 convertFloatFromBytes(byte[] byteArray, int offset) argument
443 convertBooleanFromBytes(byte[] byteArray) argument
446 convertBooleanFromBytes(byte[] byteArray, int offset) argument
[all...]
H A DBinaryOutputCapsule.java471 byte[] byteArray = new byte[4];
472 byteArray[0] = (byte) value;
473 byteArray[1] = (byte) (value >> 8);
474 byteArray[2] = (byte) (value >> 16);
475 byteArray[3] = (byte) (value >> 24);
476 baos.write(byteArray);
589 byte[] byteArray = new byte[2];
590 byteArray[0] = (byte) value;
591 byteArray[1] = (byte) (value >> 8);
592 baos.write(byteArray);
[all...]
/external/webkit/Source/WebCore/html/canvas/
H A DCanvasPixelArray.cpp39 PassRefPtr<CanvasPixelArray> CanvasPixelArray::create(PassRefPtr<ByteArray> byteArray) argument
41 return adoptRef(new CanvasPixelArray(byteArray));
49 CanvasPixelArray::CanvasPixelArray(PassRefPtr<ByteArray> byteArray) argument
50 : m_data(byteArray)
/external/webkit/Source/WebCore/html/
H A DImageData.cpp39 PassRefPtr<ImageData> ImageData::create(const IntSize& size, PassRefPtr<ByteArray> byteArray) argument
41 return adoptRef(new ImageData(size, byteArray));
50 ImageData::ImageData(const IntSize& size, PassRefPtr<ByteArray> byteArray) argument
52 , m_data(CanvasPixelArray::create(byteArray))
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DBufferedOutputStreamTest.java168 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,
[all...]
H A DDataInputStreamTest.java162 byte[] byteArray = new byte[fileString.length()];
165 is.readFully(byteArray, -1, -1);
172 is.readFully(byteArray, 0, -1);
179 is.readFully(byteArray, 1, -1);
185 is.readFully(byteArray, -1, 0);
186 is.readFully(byteArray, 0, 0);
187 is.readFully(byteArray, 1, 0);
190 is.readFully(byteArray, -1, 1);
196 is.readFully(byteArray, 0, 1);
197 is.readFully(byteArray,
[all...]
H A DRandomAccessFileTest.java531 byte[] byteArray = new byte[10];
569 raf.write(byteArray, -1, -1);
576 raf.write(byteArray, -1, 0);
583 raf.write(byteArray, -1, 1);
590 raf.write(byteArray, 0, -1);
596 raf.write(byteArray, 0, 0);
597 raf.write(byteArray, 0, byteArray.length);
598 raf.write(byteArray, 1, 0);
599 raf.write(byteArray, byteArra
[all...]
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DCheckedOutputStreamTest.java54 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
59 chkOut.write(byteArray[4]);
66 chkOut.write(byteArray, 5, 4);
86 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
91 for (byte element : byteArray) {
110 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 };
115 chkOut.write(byteArray, 4, 5);
121 chkOut.write(byteArray, 4, 6);
H A DDeflaterTest.java71 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
[all...]
H A DAdler32Test.java107 byte byteArray[] = { 1, 2 };
109 adl.update(byteArray);
130 byte[] byteArray = { 1, 2, 3 };
132 int off = 2;// accessing the 2nd element of byteArray
136 adl.update(byteArray, off, len);
144 adl.update(byteArray, off, lenError);
152 adl.update(byteArray, offError, len);
H A DCRC32Test.java123 byte byteArray[] = { 1, 2 };
125 crc.update(byteArray);
147 byte[] byteArray = { 1, 2, 3 };
149 int off = 2;// accessing the 2nd element of byteArray
153 crc.update(byteArray, off, len);
161 crc.update(byteArray, off, lenError);
169 crc.update(byteArray, offError, len);
H A DDeflaterOutputStreamTest.java68 byte byteArray[] = { 1, 3, 4, 7, 8 };
71 deflate.setInput(byteArray);
87 byte byteArray[] = { 1, 3, 4, 7, 8 };
105 dos.write(byteArray);
136 byte byteArray[] = { 1, 3, 4, 7, 8, 3, 6 };
169 dos.write(byteArray);
189 byte byteArray[] = {1, 3, 4, 6};
190 dos.write(byteArray);
243 byte byteArray[] = { 1, 3, 4, 6 };
244 dos.write(byteArray);
[all...]
H A DGZIPOutputStreamTest.java88 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
96 outGZIP.write(byteArray, 0, 1);
115 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
122 outGZIP.write(byteArray, 0, 1);
139 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' };
143 outGZIP.write(byteArray, 0, 10);
152 outGZIP.write(byteArray, 0, 11);
H A DInflaterTest.java43 byte byteArray[] = { 5, 2, 3, 7, 8 };
47 inflate.setInput(byteArray);
51 inflate.setInput(byteArray);
68 byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' };
85 for (int i = 0; i < byteArray.length; i++) {
88 outPutInf[i], byteArray[i]);
91 0, outPutInf[byteArray.length]);
119 byte byteArray[] = { 1, 3, 5, 6, 7 };
123 inflate.setInput(byteArray);
136 byte byteArray[]
[all...]
/external/jmdns/src/javax/jmdns/impl/
H A DDNSOutgoing.java163 byte[] byteArray = record.toByteArray();
165 writeShort(byteArray.length);
166 write(byteArray, 0, byteArray.length);
245 byte[] byteArray = record.toByteArray();
246 if (byteArray.length < this.availableSpace()) {
248 _questionsBytes.write(byteArray, 0, byteArray.length);
279 byte[] byteArray = record.toByteArray();
280 if (byteArray
[all...]
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
H A DGZIPSerializer.java58 byte[] byteArray = new byte[data.remaining()];
60 data.get(byteArray);
62 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(byteArray));
H A DZIPSerializer.java59 byte[] byteArray = new byte[data.remaining()];
61 data.get(byteArray);
63 ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(byteArray));
/external/apache-http/src/org/apache/commons/codec/binary/
H A DHex.java184 byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;
185 return encodeHex(byteArray);
/external/guava/guava/src/com/google/common/hash/
H A DAbstractNonStreamingHashFunction.java102 return hashBytes(stream.byteArray(), 0, stream.length());
111 byte[] byteArray() { method in class:AbstractNonStreamingHashFunction.ExposedByteArrayOutputStream
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DByteString.java346 final byte[] byteArray = bout.toByteArray();
347 return new ByteString(byteArray);
/external/icu4c/tools/genrb/
H A Dwrtjava.c450 uint8_t* byteArray = NULL; local
457 byteArray = res->u.fBinaryValue.fData;
471 if (byteArray[byteIterator] < 128)
473 sprintf(byteBuffer, byteDecl, byteArray[byteIterator]);
477 sprintf(byteBuffer, byteDecl, (byteArray[byteIterator]-256));
/external/webkit/Source/WebCore/bridge/jni/jsc/
H A DJavaArrayJSC.cpp181 jbyteArray byteArray = static_cast<jbyteArray>(javaArray()); local
183 env->GetByteArrayRegion(byteArray, index, 1, &aByte);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DArraysTest.java52 static byte[] byteArray; field in class:ArraysTest
116 Arrays.binarySearch(byteArray, counter) == counter);
123 byteArray[counter] -= 50;
127 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter);
1895 byteArray = new byte[arraySize];
1905 byteArray[counter] = (byte) counter;
1927 Arrays.binarySearch(byteArray, counter, arraySize, counter) == counter);
1931 Arrays.binarySearch(byteArray, 0, arraySize, (byte) -1));
1934 Arrays.binarySearch(byteArray, (byte) arraySize) == -(arraySize + 1));
1936 byteArray[counte
[all...]
/external/webkit/Source/WebCore/bridge/qt/
H A Dqt_pixmapruntime.cpp119 QByteArray byteArray; local
120 QBuffer buffer(&byteArray);
122 const QString encodedString = QLatin1String("data:image/png;base64,") + QLatin1String(byteArray.toBase64());
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DMediaPlayerPrivatePhonon.cpp56 QByteArray byteArray; local
57 QTextStream stream(&byteArray);
79 return byteArray;

Completed in 686 milliseconds

12