Home
last modified time | relevance | path

Searched refs:buffer (Results 626 - 650 of 15492) sorted by relevance

1...<<21222324252627282930>>...620

/third_party/skia/tests/
H A DGrAHardwareBufferTest.cpp95 static void cleanup_resources(AHardwareBuffer* buffer) { in cleanup_resources() argument
96 if (buffer) { in cleanup_resources()
97 AHardwareBuffer_release(buffer); in cleanup_resources()
120 AHardwareBuffer* buffer = nullptr; in basic_draw_test_helper() local
135 if (int error = AHardwareBuffer_allocate(&hwbDesc, &buffer)) { in basic_draw_test_helper()
136 ERRORF(reporter, "Failed to allocated hardware buffer, error: %d", error); in basic_draw_test_helper()
137 cleanup_resources(buffer); in basic_draw_test_helper()
141 // Get actual desc for allocated buffer so we know the stride for uploading cpu data. in basic_draw_test_helper()
142 AHardwareBuffer_describe(buffer, &hwbDesc); in basic_draw_test_helper()
145 if (AHardwareBuffer_lock(buffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTE in basic_draw_test_helper()
230 AHardwareBuffer* buffer = nullptr; surface_draw_test_helper() local
[all...]
/third_party/skia/third_party/externals/freetype/src/psaux/
H A Dpsstack.c67 /* allocate the stack buffer */ in FT_LOCAL_DEF()
68 if ( FT_QNEW_ARRAY( stack->buffer, stackSize ) ) in FT_LOCAL_DEF()
75 stack->top = stack->buffer; /* empty stack */ in FT_LOCAL_DEF()
88 /* free the buffer */ in cf2_stack_free()
89 FT_FREE( stack->buffer ); in cf2_stack_free()
100 return (CF2_UInt)( stack->top - stack->buffer ); in FT_LOCAL_DEF()
108 if ( stack->top == stack->buffer + stack->stackSize ) in cf2_stack_pushInt()
124 if ( stack->top == stack->buffer + stack->stackSize ) in cf2_stack_pushFixed()
140 if ( stack->top == stack->buffer ) in FT_LOCAL_DEF()
162 if ( stack->top == stack->buffer ) in FT_LOCAL_DEF()
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DUtf8Test.java106 ByteBuffer buffer = ByteBuffer.wrap(data); in assertIsValid()
110 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer.remaining())); in assertIsValid()
113 buffer = ByteBuffer.allocateDirect(data.length); in assertIsValid()
114 buffer.put(data); in assertIsValid()
115 buffer.flip(); in assertIsValid()
119 safeProcessor.isValidUtf8(buffer, buffer.position(), buffer in assertIsValid()
[all...]
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Diconsumer_surface.h32 sptr<SurfaceBuffer> buffer;
44 virtual GSError RequestBuffer(sptr<SurfaceBuffer>& buffer,
47 virtual GSError CancelBuffer(sptr<SurfaceBuffer>& buffer) = 0;
49 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer,
52 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence,
54 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) = 0;
56 virtual GSError RequestBuffer(sptr<SurfaceBuffer>& buffer,
58 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer,
60 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence,
62 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, cons
155 AcquireLastFlushedBuffer(sptr<SurfaceBuffer> &buffer, sptr<SyncFence> &fence, float matrix[16], uint32_t matrixSize, bool isUseNewMatrix) AcquireLastFlushedBuffer() argument
165 ReleaseLastFlushedBuffer(sptr<SurfaceBuffer> buffer) ReleaseLastFlushedBuffer() argument
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Ddbconvert.c91 * object - Where the buffer object is returned
95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list
96 * of buffer elements, each separated by a space or comma.
106 u8 *buffer; in acpi_db_convert_to_buffer() local
113 /* Generate the final buffer length */ in acpi_db_convert_to_buffer()
124 buffer = ACPI_ALLOCATE(length); in acpi_db_convert_to_buffer()
125 if (!buffer) { in acpi_db_convert_to_buffer()
129 /* Convert the command line bytes to the buffer */ in acpi_db_convert_to_buffer()
132 status = acpi_db_hex_byte_to_binary(&string[i], &buffer[j]); in acpi_db_convert_to_buffer()
134 ACPI_FREE(buffer); in acpi_db_convert_to_buffer()
269 u32 *buffer; acpi_db_encode_pld_buffer() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Def100_tx.c56 struct efx_tx_buffer *buffer; in ef100_tx_can_tso() local
92 /* Reserve an empty buffer for the TSO V3 descriptor. in ef100_tx_can_tso()
95 buffer = efx_tx_queue_get_insert_buffer(tx_queue); in ef100_tx_can_tso()
96 buffer->flags = EFX_TX_BUF_TSO_V3 | EFX_TX_BUF_CONT; in ef100_tx_can_tso()
97 buffer->len = header_len; in ef100_tx_can_tso()
98 buffer->unmap_len = 0; in ef100_tx_can_tso()
99 buffer->skb = skb; in ef100_tx_can_tso()
151 struct efx_tx_buffer *buffer, efx_oword_t *txd) in ef100_set_tx_csum_partial()
185 struct efx_tx_buffer *buffer, efx_oword_t *txd, in ef100_make_send_desc()
191 ESF_GZ_TX_SEND_LEN, buffer in ef100_make_send_desc()
150 ef100_set_tx_csum_partial(const struct sk_buff *skb, struct efx_tx_buffer *buffer, efx_oword_t *txd) ef100_set_tx_csum_partial() argument
183 ef100_make_send_desc(struct efx_nic *efx, const struct sk_buff *skb, struct efx_tx_buffer *buffer, efx_oword_t *txd, unsigned int segment_count) ef100_make_send_desc() argument
201 ef100_make_tso_desc(struct efx_nic *efx, const struct sk_buff *skb, struct efx_tx_buffer *buffer, efx_oword_t *txd, unsigned int segment_count) ef100_make_tso_desc() argument
245 struct efx_tx_buffer *buffer; ef100_tx_make_descriptors() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Ddbconvert.c91 * object - Where the buffer object is returned
95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list
96 * of buffer elements, each separated by a space or comma.
106 u8 *buffer; in acpi_db_convert_to_buffer() local
113 /* Generate the final buffer length */ in acpi_db_convert_to_buffer()
124 buffer = ACPI_ALLOCATE(length); in acpi_db_convert_to_buffer()
125 if (!buffer) { in acpi_db_convert_to_buffer()
129 /* Convert the command line bytes to the buffer */ in acpi_db_convert_to_buffer()
132 status = acpi_db_hex_byte_to_binary(&string[i], &buffer[j]); in acpi_db_convert_to_buffer()
134 ACPI_FREE(buffer); in acpi_db_convert_to_buffer()
269 u32 *buffer; acpi_db_encode_pld_buffer() local
[all...]
/third_party/skia/src/core/
H A DSkPicture.cpp25 // Note: in the read/write buffer versions, we have a slightly different convention:
106 bool SkPicture::BufferIsSKP(SkReadBuffer* buffer, SkPictInfo* pInfo) { in BufferIsSKP() argument
109 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP()
113 info.setVersion(buffer->readUInt()); in BufferIsSKP()
114 buffer->readRect(&info.fCullRect); in BufferIsSKP()
125 SkReadBuffer* buffer) { in Forwardport()
134 playback.draw(r.beginRecording(info.fCullRect), nullptr/*no callback*/, buffer); in Forwardport()
197 sk_sp<SkPicture> SkPicturePriv::MakeFromBuffer(SkReadBuffer& buffer) { in MakeFromBuffer() argument
199 if (!SkPicture::BufferIsSKP(&buffer, &info)) { in MakeFromBuffer()
203 int32_t ssize = buffer in MakeFromBuffer()
123 Forwardport(const SkPictInfo& info, const SkPictureData* data, SkReadBuffer* buffer) Forwardport() argument
298 Flatten(const sk_sp<const SkPicture> picture, SkWriteBuffer& buffer) Flatten() argument
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/
H A DesextcTextureBorderClampParameterTextureBorderColor.cpp412 * @param expected_data pointer to buffer with expected data
418 std::vector<glw::GLfloat> buffer(m_buffer_length); in verifyGLGetSamplerParameterfvResult()
423 memset(&buffer[0], 0, m_buffer_length * sizeof(glw::GLfloat)); in verifyGLGetSamplerParameterfvResult()
425 gl.getSamplerParameterfv(sampler_id, m_glExtTokens.TEXTURE_BORDER_COLOR, &buffer[0]); in verifyGLGetSamplerParameterfvResult()
430 if (expected_data[i] != buffer[i]) in verifyGLGetSamplerParameterfvResult()
435 returnedDataStream << buffer[j] << ","; in verifyGLGetSamplerParameterfvResult() local
457 * @param expected_data pointer to buffer with expected data
464 std::vector<glw::GLint> buffer(m_buffer_length); in verifyGLGetSamplerParameterivResult()
469 memset(&buffer[0], 0, m_buffer_length * sizeof(glw::GLint)); in verifyGLGetSamplerParameterivResult()
471 gl.getSamplerParameteriv(sampler_id, m_glExtTokens.TEXTURE_BORDER_COLOR, &buffer[ in verifyGLGetSamplerParameterivResult()
481 returnedDataStream << buffer[j] << ","; verifyGLGetSamplerParameterivResult() local
524 returnedDataStream << buffer[j] << ","; verifyGLGetSamplerParameterIivResult() local
566 returnedDataStream << buffer[j] << ","; verifyGLGetSamplerParameterIuivResult() local
607 returnedDataStream << buffer[j] << ","; verifyGLGetTexParameterfvResult() local
648 returnedDataStream << buffer[j] << ","; verifyGLGetTexParameterivResult() local
690 returnedDataStream << buffer[j] << ","; verifyGLGetTexParameterIivResult() local
732 returnedDataStream << buffer[j] << ","; verifyGLGetTexParameterIuivResult() local
[all...]
/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/
H A Ddcamera_softbus_session_test.cpp131 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); in HWTEST_F() local
135 int32_t ret = softbusSession_->OnDataReceived(buffer); in HWTEST_F()
150 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); in HWTEST_F() local
152 softbusSession_->DealRecvData(buffer); in HWTEST_F()
154 softbusSession_->DealRecvData(buffer); in HWTEST_F()
172 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); in HWTEST_F() local
173 buffer->SetRange(offset, size); in HWTEST_F()
174 softbusSession_->PackRecvData(buffer); in HWTEST_F()
176 softbusSession_->PackRecvData(buffer); in HWTEST_F()
192 std::shared_ptr<DataBuffer> buffer in HWTEST_F() local
213 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); HWTEST_F() local
298 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); HWTEST_F() local
321 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); HWTEST_F() local
364 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); HWTEST_F() local
382 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(capacity); HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dsr_ioctl.c46 unsigned char *buffer; in sr_read_tochdr() local
48 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_read_tochdr()
49 if (!buffer) in sr_read_tochdr()
56 cgc.buffer = buffer; in sr_read_tochdr()
63 tochdr->cdth_trk0 = buffer[2]; in sr_read_tochdr()
64 tochdr->cdth_trk1 = buffer[3]; in sr_read_tochdr()
66 kfree(buffer); in sr_read_tochdr()
76 unsigned char *buffer; in sr_read_tocentry() local
78 buffer in sr_read_tocentry()
387 char *buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); sr_get_mcn() local
[all...]
/kernel/linux/linux-5.10/drivers/media/radio/
H A Dradio-ma901.c79 u8 *buffer; member
80 struct mutex lock; /* buffer locking */
98 radio->buffer[0] = 0x0a; in ma901radio_set_freq()
99 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq()
100 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq()
101 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq()
102 radio->buffer[4] = 0x00; in ma901radio_set_freq()
103 radio->buffer[5] = 0x00; in ma901radio_set_freq()
104 radio->buffer[6] = 0x00; in ma901radio_set_freq()
105 radio->buffer[ in ma901radio_set_freq()
[all...]
/kernel/linux/linux-6.6/drivers/media/radio/
H A Dradio-ma901.c79 u8 *buffer; member
80 struct mutex lock; /* buffer locking */
98 radio->buffer[0] = 0x0a; in ma901radio_set_freq()
99 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq()
100 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq()
101 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq()
102 radio->buffer[4] = 0x00; in ma901radio_set_freq()
103 radio->buffer[5] = 0x00; in ma901radio_set_freq()
104 radio->buffer[6] = 0x00; in ma901radio_set_freq()
105 radio->buffer[ in ma901radio_set_freq()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dsr_ioctl.c42 unsigned char *buffer; in sr_read_tochdr() local
44 buffer = kzalloc(32, GFP_KERNEL); in sr_read_tochdr()
45 if (!buffer) in sr_read_tochdr()
52 cgc.buffer = buffer; in sr_read_tochdr()
61 tochdr->cdth_trk0 = buffer[2]; in sr_read_tochdr()
62 tochdr->cdth_trk1 = buffer[3]; in sr_read_tochdr()
65 kfree(buffer); in sr_read_tochdr()
75 unsigned char *buffer; in sr_read_tocentry() local
77 buffer in sr_read_tocentry()
396 char *buffer = kzalloc(32, GFP_KERNEL); sr_get_mcn() local
[all...]
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
H A Dparser_image_test.cc214 auto* buffer = buffers[0].get(); in TEST_F() local
215 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F()
216 EXPECT_EQ(ImageDimension::k1D, buffer->GetImageDimension()); in TEST_F()
217 EXPECT_EQ(4u, buffer->GetWidth()); in TEST_F()
218 EXPECT_EQ(1u, buffer->GetHeight()); in TEST_F()
219 EXPECT_EQ(1u, buffer->GetDepth()); in TEST_F()
220 EXPECT_EQ(4u, buffer->ElementCount()); in TEST_F()
238 auto* buffer = buffers[0].get(); in TEST_F() local
239 EXPECT_TRUE(buffer->GetFormat()->IsUint32()); in TEST_F()
240 EXPECT_EQ(ImageDimension::k2D, buffer in TEST_F()
262 auto* buffer = buffers[0].get(); TEST_F() local
303 auto* buffer = buffers[0].get(); TEST_F() local
333 auto* buffer = buffers[0].get(); TEST_F() local
[all...]
/foundation/multimedia/media_foundation/interface/kits/c/
H A Dnative_avbuffer.h35 * @param capacity the buffer's capacity, bytes
42 * @brief Clear the internal resources of the buffer and destroy the buffer instance.
44 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
49 OH_AVErrCode OH_AVBuffer_Destroy(OH_AVBuffer *buffer);
52 * @brief Get the buffer's attribute.
54 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
61 OH_AVErrCode OH_AVBuffer_GetBufferAttr(OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr);
64 * @brief Set the buffer's attribute.
66 * @param buffer Encapsulat
[all...]
/third_party/cJSON/tests/
H A Dprint_string.c30 printbuffer buffer = { 0, 0, 0, 0, 0, 0, { 0, 0, 0 } }; in assert_print_string() local
31 buffer.buffer = printed; in assert_print_string()
32 buffer.length = sizeof(printed); in assert_print_string()
33 buffer.offset = 0; in assert_print_string()
34 buffer.noalloc = true; in assert_print_string()
35 buffer.hooks = global_hooks; in assert_print_string()
37 TEST_ASSERT_TRUE_MESSAGE(print_string_ptr((const unsigned char*)input, &buffer), "Failed to print string."); in assert_print_string()
/third_party/bounds_checking_function/src/
H A Dvsscanf_s.c28 * The vsscanf_s function reads data from buffer into the location given by
36 * buffer Stored data
49 int vsscanf_s(const char *buffer, const char *format, va_list argList) in vsscanf_s() argument
56 if (buffer == NULL || format == NULL) { in vsscanf_s()
60 count = strlen(buffer); in vsscanf_s()
62 SecClearDestBuf(buffer, format, argList); in vsscanf_s()
68 * On vxworks platform when buffer is white string, will set first %s argument to zero.Like following usage: in vsscanf_s()
72 if (isspace((int)(unsigned char)buffer[0]) != 0 && isspace((int)(unsigned char)buffer[count - 1]) != 0) { in vsscanf_s()
73 SecClearDestBuf(buffer, forma in vsscanf_s()
[all...]
/third_party/icu/icu4c/source/common/
H A Dnorm2allmodes.h53 ReorderingBuffer buffer(impl, dest);
54 if(buffer.init(src.length(), errorCode)) {
55 normalize(sArray, sArray+src.length(), buffer, errorCode);
61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend()
94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend()
96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend()
108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
111 UChar buffer[4]; variable
113 const UChar *d=impl.getDecomposition(c, buffer, lengt
126 UChar buffer[30]; global() variable
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dnorm2allmodes.h53 ReorderingBuffer buffer(impl, dest);
54 if(buffer.init(src.length(), errorCode)) {
55 normalize(sArray, sArray+src.length(), buffer, errorCode);
61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend()
94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend()
96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend()
108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
111 char16_t buffer[4]; variable
113 const char16_t *d=impl.getDecomposition(c, buffer, lengt
126 char16_t buffer[30]; global() variable
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dnorm2allmodes.h53 ReorderingBuffer buffer(impl, dest);
54 if(buffer.init(src.length(), errorCode)) {
55 normalize(sArray, sArray+src.length(), buffer, errorCode);
61 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
93 ReorderingBuffer buffer(impl, first); in normalizeSecondAndAppend()
94 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend()
96 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend()
108 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
111 UChar buffer[4]; variable
113 const UChar *d=impl.getDecomposition(c, buffer, lengt
126 UChar buffer[30]; global() variable
[all...]
/third_party/zlib/contrib/untgz/
H A Duntgz.c104 char buffer[BLOCKSIZE]; member
133 static char buffer[1024]; in TGZfname() local
136 strcpy(buffer,arcname); in TGZfname()
137 origlen = strlen(buffer); in TGZfname()
141 strcpy(buffer+origlen,TGZsuffix[i]); in TGZfname()
142 if (access(buffer,F_OK) == 0) in TGZfname()
143 return buffer; in TGZfname()
357 char *buffer = strdup(newdir); in makedir() local
359 int len = strlen(buffer); in makedir()
363 free(buffer); in makedir()
425 union tar_buffer buffer; tar() local
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_read_image.cpp527 // The bit buffer has the current code in the most significant bits, in GetCodeWord()
537 // Typical case; get the code from the bit buffer. in GetCodeWord()
547 // The buffer needs to be refreshed. in GetCodeWord()
585 // Number of low order bits in the current buffer we don't care about in GetCodeWord()
858 void dng_row_interleaved_image::DoGet (dng_pixel_buffer &buffer) const in DoGet()
861 dng_pixel_buffer tempBuffer (buffer); in DoGet()
863 for (int32 row = buffer.fArea.t; row < buffer.fArea.b; row++) in DoGet()
870 tempBuffer.fData = (void *) buffer.DirtyPixel (row, in DoGet()
871 buffer in DoGet()
882 DoPut(const dng_pixel_buffer &buffer) DoPut() argument
906 ReorderSubTileBlocks(dng_host &host, const dng_ifd &ifd, dng_pixel_buffer &buffer, AutoPtr<dng_memory_block> &tempBuffer) ReorderSubTileBlocks() argument
1500 char buffer [JMSG_LENGTH_MAX]; dng_output_message() local
2031 ByteSwapBuffer(dng_host & , dng_pixel_buffer &buffer) ByteSwapBuffer() argument
2069 DecodePredictor(dng_host & , const dng_ifd &ifd, dng_pixel_buffer &buffer) DecodePredictor() argument
[all...]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DCodedOutputStream.java69 /** The buffer size used in {@link #newInstance(OutputStream)}. */
73 * Returns the buffer size to efficiently write dataLength bytes to this CodedOutputStream. Used
76 * @return the buffer size to efficiently write dataLength bytes to this CodedOutputStream.
98 * buffer size.
130 public static CodedOutputStream newInstance(ByteBuffer buffer) { in newInstance() argument
131 if (buffer.hasArray()) { in newInstance()
132 return new HeapNioEncoder(buffer); in newInstance()
134 if (buffer.isDirect() && !buffer.isReadOnly()) { in newInstance()
136 ? newUnsafeInstance(buffer) in newInstance()
143 newUnsafeInstance(ByteBuffer buffer) newUnsafeInstance() argument
148 newSafeInstance(ByteBuffer buffer) newSafeInstance() argument
1151 private final byte[] buffer; global() field in CodedOutputStream.ArrayEncoder
1156 ArrayEncoder(byte[] buffer, int offset, int length) ArrayEncoder() argument
1556 private final ByteBuffer buffer; global() field in CodedOutputStream.SafeDirectNioEncoder
1559 SafeDirectNioEncoder(ByteBuffer buffer) SafeDirectNioEncoder() argument
1878 private final ByteBuffer buffer; global() field in CodedOutputStream.UnsafeDirectNioEncoder
1885 UnsafeDirectNioEncoder(ByteBuffer buffer) UnsafeDirectNioEncoder() argument
2235 final byte[] buffer; global() field in CodedOutputStream.AbstractBufferedEncoder
2268 final void buffer(byte value) { buffer() method in CodedOutputStream.AbstractBufferedEncoder
[all...]
H A DCodedInputStream.java83 /** Create a new CodedInputStream wrapping the given InputStream, with a specified buffer size. */
149 // buffer as a limit, we allow them to get this information via in newInstance()
178 /** Create a new CodedInputStream wrapping the given buffer. */
189 // The buffer is non-direct and does not expose the underlying array. Using the ByteBuffer API in newInstance()
190 // to access individual bytes is very slow, so just copy the buffer to an array. in newInstance()
192 byte[] buffer = new byte[buf.remaining()]; in newInstance()
193 buf.duplicate().get(buffer); in newInstance()
194 return newInstance(buffer, 0, buffer.length, true); in newInstance()
375 * Enables {@link ByteString} aliasing of the underlying buffer, tradin
596 private final byte[] buffer; global() field in CodedInputStream.ArrayDecoder
608 ArrayDecoder(final byte[] buffer, final int offset, final int len, boolean immutable) ArrayDecoder() argument
1282 private final ByteBuffer buffer; global() field in CodedInputStream.UnsafeDirectNioDecoder
1321 UnsafeDirectNioDecoder(ByteBuffer buffer, boolean immutable) UnsafeDirectNioDecoder() argument
2029 private final byte[] buffer; global() field in CodedInputStream.StreamDecoder
[all...]

Completed in 18 milliseconds

1...<<21222324252627282930>>...620