| /external/okio/okio/src/commonMain/kotlin/okio/ |
| D | BufferedSource.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 * A source that keeps a buffer internally so that callers can do small reads without a performance 24 /** This source's internal buffer. */ 25 val buffer: Buffer constant 29 * to read or the source is definitely exhausted. 34 * Returns when the buffer contains at least `byteCount` bytes. Throws an 35 * [java.io.EOFException] if the source is exhausted before the required bytes can be read. 40 * Returns true when the buffer contains at least `byteCount` bytes, expanding it as 41 * necessary. Returns false if the source is exhausted before the requested bytes can be read. [all …]
|
| D | Buffer.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 23 * **Moving data from one buffer to another is fast.** Instead of copying bytes from one place in 26 * **This buffer grows with your data.** Just like ArrayList, each buffer starts small. It consumes 29 * **This buffer pools its byte arrays.** When you allocate a byte array in Java, the runtime must 30 * zero-fill the requested array before returning it to you. Even if you're going to write over that 31 * space anyway. This class avoids zero-fill and GC churn by pooling byte arrays. 33 expect class Buffer() : BufferedSource, BufferedSink { class 39 override val buffer: Buffer constant in okio.Buffer 41 override fun emitCompleteSegments(): Buffer in emitCompleteSegments() [all …]
|
| /external/deqp/doc/testspecs/GLES3/ |
| D | performance.buffer.data_upload.txt | 1 g------------------------------------------------------------------------- 3 ----------------------------------------------- 11 http://www.apache.org/licenses/LICENSE-2.0 14 distributed under the License is distributed on an "AS IS" BASIS, 18 ------------------------------------------------------------------------- 19 Buffer upload performance tests 22 + dEQP-GLES3.performance.buffer.data_upload.* 27 - STREAM, STATIC and DYNAMIC buffer usages 28 - Target buffer in different states: 30 ~ Just generated buffer [all …]
|
| /external/harfbuzz_ng/src/ |
| D | hb-buffer.cc | 2 * Copyright © 1998-2004 David Turner and Werner Lemberg 6 * This is part of HarfBuzz, a text shaping library. 8 * Permission is hereby granted, without written agreement and without 22 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 23 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 30 #include "hb-buffer.hh" 31 #include "hb-utf.hh" 35 * SECTION: hb-buffer 36 * @title: hb-buffer 44 * The input buffer is a sequence of Unicode codepoints, with [all …]
|
| D | hb-ot-shape-normalize.cc | 4 * This is part of HarfBuzz, a text shaping library. 6 * Permission is hereby granted, without written agreement and without 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 31 #include "hb-ot-shape-normalize.hh" 32 #include "hb-ot-shaper.hh" 33 #include "hb-ot-shape.hh" 47 * In general what happens is that: each grapheme is decomposed in a chain 54 * - Try to render all canonically equivalent strings similarly. To really 57 * we skip some cases. For example, if composed is desired, we simply [all …]
|
| D | hb-buffer.h | 2 * Copyright © 1998-2004 David Turner and Werner Lemberg 6 * This is part of HarfBuzz, a text shaping library. 8 * Permission is hereby granted, without written agreement and without 22 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 23 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 37 #include "hb-common.h" 38 #include "hb-unicode.h" 39 #include "hb-font.h" 57 * allow selecting more fine-grained cluster handling. 59 * The #hb_glyph_info_t is the structure that holds information about the [all …]
|
| /external/mesa3d/include/android_stub/hardware/ |
| D | gralloc1.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 35 /* If this capability is supported, then the outBuffers parameter to 37 * given allocation is possible or not. */ 40 /* If this capability is supported, then the implementation supports 44 /* If this capability is supported, then the implementation always closes 45 * and deletes a buffer handle whenever the last reference is removed. 47 * Supporting this capability is strongly recommended. It will become 82 * dequeued buffer before. May be ignored by the gralloc device. */ 92 /* Bits reserved for implementation-specific usage flags */ [all …]
|
| /external/pdfium/public/ |
| D | fpdf_structtree.h | 2 // Use of this source code is governed by a BSD-style license that can be 10 // clang-format off 21 // page - Handle to the page, as returned by FPDF_LoadPage(). 30 // struct_tree - Handle to the structure tree, as returned by 40 // struct_tree - Handle to the structure tree, as returned by 43 // The number of children, or -1 on error. 50 // struct_tree - Handle to the structure tree, as returned by 52 // index - The index for the child, 0-based. 54 // The child at the n-th index or NULL on error. 61 // struct_element - Handle to the struct element. [all …]
|
| D | fpdf_signature.h | 2 // Use of this source code is governed by a BSD-style license that can be 19 // document - Handle to document. Returned by FPDF_LoadDocument(). 21 // Total number of signatures in the document on success, -1 on error. 28 // document - Handle to document. Returned by FPDF_LoadDocument(). 29 // index - Index into the array of signatures of the document. 33 // remains valid until FPDF_CloseDocument() is called for the document. 41 // signature - Handle to the signature object. Returned by 43 // buffer - The address of a buffer that receives the contents. 44 // length - The size, in bytes, of |buffer|. 48 // For public-key signatures, |buffer| is either a DER-encoded PKCS#1 binary or [all …]
|
| /external/webrtc/common_video/ |
| D | video_frame_buffer_pool.cc | 4 * Use of this source code is governed by a BSD-style license 21 bool HasOneRef(const rtc::scoped_refptr<VideoFrameBuffer>& buffer) { in HasOneRef() argument 22 // Cast to rtc::RefCountedObject is safe because this function is only called in HasOneRef() 26 switch (buffer->type()) { in HasOneRef() 28 return static_cast<rtc::RefCountedObject<I420Buffer>*>(buffer.get()) in HasOneRef() 29 ->HasOneRef(); in HasOneRef() 32 return static_cast<rtc::RefCountedObject<I444Buffer>*>(buffer.get()) in HasOneRef() 33 ->HasOneRef(); in HasOneRef() 36 return static_cast<rtc::RefCountedObject<I422Buffer>*>(buffer.get()) in HasOneRef() 37 ->HasOneRef(); in HasOneRef() [all …]
|
| /external/deqp/doc/testspecs/VK/ |
| D | sparse_resources.txt | 5 dEQP-VK.sparse_resources.* 9 1. Test fully resident buffer created with VK_BUFFER_CREATE_SPARSE_BINDING_BIT flag bit 11 3. Test partially resident buffer created with VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT flag bit 14 6. Test memory aliasing for fully resident buffer objects 20 1. Test fully resident buffer created with VK_BUFFER_CREATE_SPARSE_BINDING_BIT flag bit 22 The test creates buffer object with VK_BUFFER_CREATE_SPARSE_BINDING_BIT flag bit. The size of the b… 23 of the test parameters. The memory requirements of the buffer are being checked. Device memory is a… 24 in chunks equal to the alignment parameter of buffer's memory requirements. The number of allocatio… 27 The test creates two queues - one supporting sparse binding operations, the second one supporting c… 29 First queue is used to perform binding of device memory to sparse buffer. The binding operation sig… [all …]
|
| /external/jsilver/src/com/google/streamhtmlparser/util/ |
| D | JavascriptTokenBuffer.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 24 * Implements a circular (ring) buffer of characters with specialized 26 * Javascript content that is being parsed. 28 * This is a specialized class - of no use to external code - 30 * in the C-version of the HtmlParser, specifically 33 * <li> The API is odd, using negative indexes to access content in 34 * the buffer. Changing the API would mean changing the test 36 * remaining compatible with the C-version. It is left as an 37 * exercise for once the code is very stable and proven. [all …]
|
| /external/parameter-framework/asio-1.10.6/include/asio/ |
| D | buffer.hpp | 2 // buffer.hpp 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 48 /// Holds a buffer that can be modified. 50 * The mutable_buffer class provides a safe representation of a buffer that can 51 * be modified. It does not own the underlying data, and so is cheap to copy or 54 * @par Accessing Buffer Contents 56 * The contents of a buffer may be accessed using the @ref buffer_size 70 /// Construct an empty buffer. 77 /// Construct a buffer to represent a given memory range. 110 /// Adapts a single modifiable buffer so that it meets the requirements of the [all …]
|
| /external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/ |
| D | libyuv_frame_buffer_utils.cc | 7 http://www.apache.org/licenses/LICENSE-2.0 10 distributed under the License is distributed on an "AS IS" BASIS, 43 // Converts NV12 `buffer` to the `output_buffer` of the target color space. 45 absl::Status ConvertFromNv12(const FrameBuffer& buffer, in ConvertFromNv12() argument 48 FrameBuffer::GetYuvDataFromFrameBuffer(buffer)); in ConvertFromNv12() 49 switch (output_buffer->format()) { in ConvertFromNv12() 51 // The RAW format of Libyuv represents the 8-bit interleaved RGB format in in ConvertFromNv12() 56 const_cast<uint8*>(output_buffer->plane(0).buffer), in ConvertFromNv12() 57 output_buffer->plane(0).stride.row_stride_bytes, in ConvertFromNv12() 58 buffer.dimension().width, buffer.dimension().height); in ConvertFromNv12() [all …]
|
| /external/skia/src/gpu/ganesh/ |
| D | GrBufferAllocPool.h | 4 * Use of this source code is governed by a BSD-style license that can be 27 * space if it over allocated. When a client is ready to draw from the pool 29 * can be reset after drawing is completed to recycle space. 31 * At creation time a minimum per-buffer size can be specified. Additionally, 33 * be allocated at the min size and kept around until the pool is destroyed. 41 * cpu buffer allocations to avoid reallocating them. 53 struct Buffer { struct 57 std::unique_ptr<Buffer[]> fBuffers; argument 68 * Invalidates all the data in the pool, unrefs non-preallocated buffers. 83 * @param cpuBufferCache If non-null a cache for client side array buffers [all …]
|
| /external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/ |
| D | TarUtils.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 56 // copy until end of input or output is reached. 64 public String decode(final byte[] buffer) { 65 final int length = buffer.length; 68 for (final byte b : buffer) { 72 result.append((char) (b & 0xFF)); // Allow for sign-extension 84 * Parse an octal string from a buffer. 87 * The buffer must contain a trailing space or NUL, [all …]
|
| /external/pigweed/pw_ring_buffer/public/pw_ring_buffer/ |
| D | prefixed_entry_ring_buffer.h | 7 // https://www.apache.org/licenses/LICENSE-2.0 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 28 // A circular ring buffer for arbitrary length data entries. Each PushBack() 29 // produces a buffer entry. Each entry consists of a preamble followed by an 30 // arbitrary length data chunk. The preamble is comprised of an optional user 32 // bytes in the data chunk. This is a FIFO queue, with the oldest entries at 36 // The ring buffer supports multiple readers, which can be attached/detached 37 // from the buffer. Each reader has its own read pointer and can peek and pop 38 // the entry at the head. Entries are not bumped out from the buffer until all 39 // readers have moved past that entry, or if the buffer is at capacity and space [all …]
|
| /external/deqp-deps/amber/src/ |
| D | buffer.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 10 // distributed under the License is distributed on an "AS IS" BASIS, 36 /// Unknown buffer type 37 kUnknown = -1, 38 /// A color buffer. 40 /// A depth/stencil buffer. 42 /// An index buffer. 48 /// A storage buffer. 50 /// A dynamic storage buffer. 52 /// A uniform buffer. [all …]
|
| /external/pigweed/pw_string/public/pw_string/ |
| D | type_to_string.h | 7 // https://www.apache.org/licenses/LICENSE-2.0 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 33 // non-negative integer. Returns 1 for 0 or 1 + log base 10 for other numbers. 37 // provided non-negative integer. 39 return static_cast<uint_fast8_t>((64 - __builtin_clzll(integer | 1u) + 3) / in HexDigitCount() 43 // Writes an integer as a null-terminated string in base 10. Returns the number 47 // terminator is written and the status is RESOURCE_EXHAUSTED. 49 // IntToString is templated, but a single 64-bit integer implementation is used 50 // for all integer types. The template is used for two reasons: 62 constexpr StatusWithSize IntToString(T value, span<char> buffer) { in IntToString() argument [all …]
|
| /external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/tensorbuffer/ |
| D | TensorBuffer.java | 7 http://www.apache.org/licenses/LICENSE-2.0 10 distributed under the License is distributed on an "AS IS" BASIS, 28 /** Represents the data buffer for either a model's input or its output. */ 30 /** Where the data is stored. */ 31 protected ByteBuffer buffer; field in TensorBuffer 33 /** Shape of the tensor stored in this buffer. */ 36 /** Number of elements in the buffer. It will be changed to a proper value in the constructor. */ 37 protected int flatSize = -1; 40 * Indicator of whether this buffer is dynamic or fixed-size. Fixed-size buffers will have 41 * pre-allocated memory and fixed size. While the size of dynamic buffers can be changed. [all …]
|
| /external/openthread/tests/unit/ |
| D | test_spinel_buffer.cpp | 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 43 // This module implements unit-test for Spinel::Buffer class. 65 uint32_t mFrameAddedCount; // Number of times FrameAddedCallback is invoked. 66 uint32_t mFrameRemovedCount; // Number of times FrameRemovedCallback is invoked. 81 Spinel::Buffer::FrameTag sTagHistoryArray[kNumPrios][kTagArraySize]; 84 Spinel::Buffer::FrameTag sExpectedRemovedTag = Spinel::Buffer::kInvalidTag; 94 void AddTagToHistory(Spinel::Buffer::FrameTag aTag, Spinel::Buffer::Priority aPriority) in AddTagToHistory() 109 void VerifyAndRemoveTagFromHistory(Spinel::Buffer::FrameTag aTag, Spinel::Buffer::Priority aPriorit… in VerifyAndRemoveTagFromHistory() 113 VerifyOrQuit(sTagHistoryHead[priority] != sTagHistoryTail[priority], "Tag history is empty,"); in VerifyAndRemoveTagFromHistory() 122 if (sExpectedRemovedTag != Spinel::Buffer::kInvalidTag) in VerifyAndRemoveTagFromHistory() [all …]
|
| /external/rust/crates/vulkano/src/buffer/ |
| D | mod.rs | 3 // <LICENSE-APACHE or 4 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT 5 // license <LICENSE-MIT or https://opensource.org/licenses/MIT>, 12 //! A Vulkan buffer is very similar to a buffer that you would use in programming languages in 13 //! general, in the sense that it is a location in memory that contains data. The difference 14 //! between a Vulkan buffer and a regular buffer is that the content of a Vulkan buffer is 17 //! Vulkano does not perform any specific marshalling of buffer data. The representation of the 18 //! buffer in memory is identical between the CPU and GPU. Because the Rust compiler is allowed to 19 //! reorder struct fields at will by default when using `#[repr(Rust)]`, it is advised to mark each 21 //! procedure. Each element is laid out in memory in the order of declaration and aligned to a [all …]
|
| /external/protobuf/python/google/protobuf/internal/ |
| D | decoder.py | 1 # Protocol Buffers - Google's data interchange format 3 # https://developers.google.com/protocol-buffers/ 19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 31 """Code for decoding protocol buffer primitives. 33 This code is very similar to encoder.py -- read the docs for that module first. 35 A "decoder" is a function with the signature: 36 Decode(buffer, pos, end, message, field_dict) 38 buffer: The string containing the encoded message. 41 less than len(buffer) if we're reading a sub-message. [all …]
|
| /external/mesa3d/src/gfxstream/guest/fuchsia/include/android/ |
| D | hardware_buffer.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 22 * @defgroup AHardwareBuffer Native Hardware Buffer 29 * are zero-copy, i.e., passing AHardwareBuffer to another process 52 * Buffer pixel formats. 101 * Must have height 1 and one layer, with width equal to the buffer 102 * size in bytes. Corresponds to Vulkan buffers and OpenGL buffer 152 * shaders through an external sampler. Does not support mip-maps 153 * cube-maps or multi-layered textures. 159 * Buffer usage flags, specifying how the buffer will be accessed. [all …]
|
| /external/mesa3d/include/android_stub/android/ |
| D | hardware_buffer.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 11 * distributed under the License is distributed on an "AS IS" BASIS, 22 * @defgroup AHardwareBuffer Native Hardware Buffer 29 * are zero-copy, i.e., passing AHardwareBuffer to another process 57 * Buffer pixel formats. 106 * Must have height 1 and one layer, with width equal to the buffer 107 * size in bytes. Corresponds to Vulkan buffers and OpenGL buffer 157 * shaders through an external sampler. Does not support mip-maps 158 * cube-maps or multi-layered textures. 164 * Buffer usage flags, specifying how the buffer will be accessed. [all …]
|