/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/std/ |
D | ByteBufferSerializer.java | 19 …public void serialize(ByteBuffer bbuf, JsonGenerator gen, SerializerProvider provider) throws IOEx… in serialize() argument 22 if (bbuf.hasArray()) { in serialize() 23 final int pos = bbuf.position(); in serialize() 24 gen.writeBinary(bbuf.array(), bbuf.arrayOffset() + pos, bbuf.limit() - pos); in serialize() 29 ByteBuffer copy = bbuf.asReadOnlyBuffer(); in serialize()
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/ |
D | TensorTest.java | 183 ByteBuffer bbuf = ByteBuffer.allocate(1024).order(ByteOrder.nativeOrder()); in writeTo() local 185 clearBuffer(bbuf); // FLOAT in writeTo() 186 tfloats.writeTo(bbuf); in writeTo() 187 assertEquals(tfloats.numBytes(), bbuf.position()); in writeTo() 188 flipBuffer(bbuf); in writeTo() 189 assertEquals(floats[0], bbuf.asFloatBuffer().get(0), EPSILON); in writeTo() 190 clearBuffer(bbuf); // DOUBLE in writeTo() 191 tdoubles.writeTo(bbuf); in writeTo() 192 assertEquals(tdoubles.numBytes(), bbuf.position()); in writeTo() 193 flipBuffer(bbuf); in writeTo() [all …]
|
/external/openssh/regress/unittests/bitmap/ |
D | tests.c | 37 u_char bbuf[1024], bnbuf[1024]; in tests() local 87 memset(bbuf, 0xfc, sizeof(bbuf)); in tests() 88 ASSERT_INT_EQ(bitmap_to_string(b, bbuf, in tests() 89 sizeof(bbuf)), 0); in tests() 90 for (n = len; n < (int)sizeof(bbuf); n++) in tests() 91 ASSERT_U8_EQ(bbuf[n], 0xfc); in tests() 95 ASSERT_MEM_EQ(bbuf, bnbuf, len); in tests()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/ |
D | JDKTypeSerializationTest.java | 140 ByteBuffer bbuf = ByteBuffer.wrap(INPUT_BYTES); in testByteBuffer() local 141 assertEquals(exp, MAPPER.writeValueAsString(bbuf)); in testByteBuffer() 153 ByteBuffer bbuf = ByteBuffer.wrap(INPUT_BYTES); in testSlicedByteBuffer() local 155 bbuf.position(2); in testSlicedByteBuffer() 156 ByteBuffer slicedBuf = bbuf.slice(); in testSlicedByteBuffer() 173 ByteBuffer bbuf = ByteBuffer.wrap(INPUT_BYTES); in testDuplicatedByteBufferWithCustomPosition() local 174 bbuf.position(2); in testDuplicatedByteBufferWithCustomPosition() 175 ByteBuffer duplicated = bbuf.duplicate(); in testDuplicatedByteBufferWithCustomPosition() 181 bbuf = ByteBuffer.wrap(INPUT_BYTES, 1, 3); in testDuplicatedByteBufferWithCustomPosition() 182 assertEquals(exp, MAPPER.writeValueAsString(bbuf.duplicate())); in testDuplicatedByteBufferWithCustomPosition()
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/ |
D | NativeInterpreterWrapperTest.java | 345 ByteBuffer bbuf = ByteBuffer.allocateDirect(2 * 8 * 8 * 3); in testRunWithByteBufferHavingBytes() local 346 bbuf.order(ByteOrder.nativeOrder()); in testRunWithByteBufferHavingBytes() 347 bbuf.rewind(); in testRunWithByteBufferHavingBytes() 351 bbuf.put((byte) 0xe0); in testRunWithByteBufferHavingBytes() 352 bbuf.put((byte) 0x4f); in testRunWithByteBufferHavingBytes() 353 bbuf.put((byte) 0xd0); in testRunWithByteBufferHavingBytes() 357 bbuf.rewind(); in testRunWithByteBufferHavingBytes() 358 Object[] inputs = {bbuf}; in testRunWithByteBufferHavingBytes() 377 ByteBuffer bbuf = ByteBuffer.allocateDirect(4 * 8 * 8 * 3 * 4); in testRunWithByteBufferHavingFloats() local 378 bbuf.order(ByteOrder.nativeOrder()); in testRunWithByteBufferHavingFloats() [all …]
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/ |
D | UTF8JsonGenerator.java | 787 final byte[] bbuf = _outputBuffer; in writeRaw() 789 bbuf[_outputTail++] = (byte) ch; in writeRaw() 791 bbuf[_outputTail++] = (byte) (0xc0 | (ch >> 6)); in writeRaw() 792 bbuf[_outputTail++] = (byte) (0x80 | (ch & 0x3f)); in writeRaw() 805 final byte[] bbuf = _outputBuffer; in _writeSegmentedRaw() 820 bbuf[_outputTail++] = (byte) ch; in _writeSegmentedRaw() 830 bbuf[_outputTail++] = (byte) (0xc0 | (ch >> 6)); in _writeSegmentedRaw() 831 bbuf[_outputTail++] = (byte) (0x80 | (ch & 0x3f)); in _writeSegmentedRaw() 2082 final byte[] bbuf = _outputBuffer; in _outputRawMultiByteChar() 2083 bbuf[_outputTail++] = (byte) (0xe0 | (ch >> 12)); in _outputRawMultiByteChar() [all …]
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/ |
D | TestSerializedString.java | 49 final ByteBuffer bbuf = ByteBuffer.allocate(INPUT.length() - 2); in testFailedAccess() local 53 assertEquals(-1, sstr.putQuotedUTF8(bbuf)); in testFailedAccess() 55 bbuf.rewind(); in testFailedAccess() 58 assertEquals(-1, sstr.putUnquotedUTF8(bbuf)); in testFailedAccess()
|
/external/ImageMagick/coders/ |
D | wpg.c | 449 bbuf, in UnpackWPGRaster() local 473 bbuf=(unsigned char) c; in UnpackWPGRaster() 474 RunCount=bbuf & 0x7F; in UnpackWPGRaster() 475 if(bbuf & 0x80) in UnpackWPGRaster() 479 bbuf=ReadBlobByte(image); in UnpackWPGRaster() 480 for(i=0;i<(int) RunCount;i++) InsertByte(bbuf); in UnpackWPGRaster() 578 bbuf, in UnpackWPG2Raster() local 593 bbuf=ReadBlobByte(image); in UnpackWPG2Raster() 595 switch(bbuf) in UnpackWPG2Raster() 630 for(bbuf=0; bbuf < SampleSize; bbuf++) in UnpackWPG2Raster() [all …]
|
/external/aac/libArithCoding/src/ |
D | ac_arith_coder.cpp | 612 static ARITH_CODING_ERROR decode2(HANDLE_FDK_BITSTREAM bbuf, in decode2() argument 631 as.vobf = FDKreadBits(bbuf, cbitsnew); in decode2() 654 r = ari_decode_14bits(bbuf, &as, ari_pk[pki], VAL_ESC + 1); in decode2() 683 r = ari_decode_14bits(bbuf, &as, ari_lsb2[pidx], 4); in decode2() 707 FDKpushBack(bbuf, cbitsnew - 2); in decode2() 718 r = FDKreadBits(bbuf, bits); in decode2()
|
/external/libwebsockets/test-apps/ |
D | test-sshd.c | 197 uint8_t bbuf[256]; in ssh_ops_rx() local 213 bbuf[0] = 0x0a; in ssh_ops_rx() 214 bbuf[1] = 0x0a; in ssh_ops_rx() 215 if (write(fd, bbuf, 1) != 1) in ssh_ops_rx() 219 bbuf[0] = 0x0d; in ssh_ops_rx() 220 bbuf[1] = 0x0a; in ssh_ops_rx() 221 if (!lws_ring_insert(priv->ring_stdout, bbuf, 2)) in ssh_ops_rx()
|
/external/webrtc/p2p/base/ |
D | stun_server.cc | 34 rtc::ByteBufferReader bbuf(buf, size); in OnPacket() local 36 if (!msg.Read(&bbuf)) { in OnPacket()
|
/external/e2fsprogs/lib/ext2fs/ |
D | inline_data.c | 274 char *bbuf, char *ibuf, int size) in ext2fs_inline_data_convert_dir() argument 294 dir = (struct ext2_dir_entry *) bbuf; in ext2fs_inline_data_convert_dir() 305 dir = (struct ext2_dir_entry *) (bbuf + dir->rec_len); in ext2fs_inline_data_convert_dir() 317 dir = (struct ext2_dir_entry *) (bbuf + offset); in ext2fs_inline_data_convert_dir() 318 memcpy(bbuf + offset, ibuf + EXT4_INLINE_DATA_DOTDOT_SIZE, in ext2fs_inline_data_convert_dir() 329 dir = (struct ext2_dir_entry *) (bbuf + offset); in ext2fs_inline_data_convert_dir() 337 t = EXT2_DIRENT_TAIL(bbuf, fs->blocksize); in ext2fs_inline_data_convert_dir()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cnumtst.c | 2694 char bbuf[kUBufMax*2]; in TestContext() local 2695 u_austrncpy(bbuf, ubufResult, sizeof(bbuf)); in TestContext() 2698 itemPtr->expectedResult, ulenRes, bbuf); in TestContext() 3421 char bbuf[kBBufMax]; in TestIgnorePadding() local 3424 u_austrncpy(bbuf, ubuf, kBBufMax); in TestIgnorePadding() 3425 log_err("unum_toPattern result should ignore padding but get %s\n", bbuf); in TestIgnorePadding() 3436 u_austrncpy(bbuf, ubuf, kBBufMax); in TestIgnorePadding() 3437 log_err("unum_formatDecimal result expect 24 but get %s\n", bbuf); in TestIgnorePadding() 3455 char bbuf[kBBufMax]; in TestSciNotationMaxFracCap() local 3462 u_austrncpy(bbuf, ubuf, kUBufMax); in TestSciNotationMaxFracCap() [all …]
|
D | cdateintervalformattest.c | 340 char bbuf[kSizeBBuf]; in TestFPos_SkelWithSeconds() local 350 u_strToUTF8(bbuf, kSizeBBuf, NULL, ubuf, ulen, &status); in TestFPos_SkelWithSeconds() 355 fpos.beginIndex, fpos.endIndex, bbuf); in TestFPos_SkelWithSeconds()
|
D | cdattst.c | 1905 char bbuf[kBbufMax]; in TestForceGannenNumbering() local 1906 u_austrncpy(bbuf, testString, testStrLen); in TestForceGannenNumbering() 1907 … log_err("Formatting year 1 as Gannen, got%s but expected 3rd char to be 0x5143", bbuf); in TestForceGannenNumbering()
|
/external/tensorflow/tensorflow/go/ |
D | tensor_test.go | 249 bbuf := new(bytes.Buffer) 250 if _, err := bts.WriteContentsTo(bbuf); err != nil { 256 abbuf := io.MultiReader(abuf, bbuf)
|
/external/mdnsresponder/mDNSWindows/ |
D | mDNSWin32.h | 64 uint8_t bbuf[ 4192 ]; member
|
D | mDNSWin32.c | 1191 sock->bptr = sock->bbuf; in mDNSPlatformReadTCP() 1192 sock->eptr = sock->bbuf; in mDNSPlatformReadTCP() 1255 sock->bptr = sock->bbuf; in TCPAddSocket() 1256 sock->eptr = sock->bbuf; in TCPAddSocket() 1257 sock->ebuf = sock->bbuf + sizeof( sock->bbuf ); in TCPAddSocket()
|
/external/icu/icu4c/source/test/intltest/ |
D | tmsgfmt.cpp | 1018 char bbuf[96]; in testSetLocale() local 1019 result.extract(0, result.length(), bbuf, sizeof(bbuf)); in testSetLocale() 1020 dataerrln("*** MSG format err. - %s; result was %s", u_errorName(err), bbuf); in testSetLocale()
|