Home
last modified time | relevance | path

Searched refs:ByteBuffer (Results 1 – 25 of 537) sorted by relevance

12345678910>>...22

/external/webrtc/webrtc/base/
Dbytebuffer.cc25 ByteBuffer::ByteBuffer() { in ByteBuffer() function in rtc::ByteBuffer
29 ByteBuffer::ByteBuffer(ByteOrder byte_order) { in ByteBuffer() function in rtc::ByteBuffer
33 ByteBuffer::ByteBuffer(const char* bytes, size_t len) { in ByteBuffer() function in rtc::ByteBuffer
37 ByteBuffer::ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order) { in ByteBuffer() function in rtc::ByteBuffer
41 ByteBuffer::ByteBuffer(const char* bytes) { in ByteBuffer() function in rtc::ByteBuffer
45 ByteBuffer::ByteBuffer(const Buffer& buf) { in ByteBuffer() function in rtc::ByteBuffer
49 void ByteBuffer::Construct(const char* bytes, size_t len, in Construct()
65 ByteBuffer::~ByteBuffer() { in ~ByteBuffer()
69 bool ByteBuffer::ReadUInt8(uint8_t* val) { in ReadUInt8()
75 bool ByteBuffer::ReadUInt16(uint16_t* val) { in ReadUInt16()
[all …]
Dbytebuffer.h22 class ByteBuffer {
31 ByteBuffer();
32 explicit ByteBuffer(ByteOrder byte_order);
33 ByteBuffer(const char* bytes, size_t len);
34 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order);
37 explicit ByteBuffer(const char* bytes);
39 explicit ByteBuffer(const Buffer& buf);
41 ~ByteBuffer();
91 friend class ByteBuffer; variable
117 RTC_DISALLOW_COPY_AND_ASSIGN(ByteBuffer);
/external/flatbuffers/tests/FlatBuffers.Test/
DByteBufferTests.cs29 var uut = new ByteBuffer(buffer); in ByteBuffer_Length_MatchesBufferLength()
37 var uut = new ByteBuffer(buffer); in ByteBuffer_PutBytePopulatesBufferAtZeroOffset()
48 var uut = new ByteBuffer(buffer); in ByteBuffer_PutByteCannotPutAtOffsetPastLength()
57 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortPopulatesBufferCorrectly()
70 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortCannotPutAtOffsetPastLength()
80 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortChecksLength()
88 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortChecksLengthAndOffset()
97 var uut = new ByteBuffer(buffer); in ByteBuffer_PutIntPopulatesBufferCorrectly()
112 var uut = new ByteBuffer(buffer); in ByteBuffer_PutIntCannotPutAtOffsetPastLength()
120 var uut = new ByteBuffer(buffer); in ByteBuffer_PutIntChecksLength()
[all …]
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DValidationTestUtilTest.java11 import java.nio.ByteBuffer;
23 String input, boolean isInputValid, ByteBuffer expectedData, int expectedHandlesCount) { in checkInputParser()
43 ByteBuffer expected = ByteBuffer.allocateDirect(0); in testCorrectMessageParsing()
51 ByteBuffer expected = ByteBuffer.allocateDirect(0); in testCorrectMessageParsing()
59 ByteBuffer expected = ByteBuffer.allocateDirect(17); in testCorrectMessageParsing()
73 ByteBuffer expected = ByteBuffer.allocateDirect(15); in testCorrectMessageParsing()
85 ByteBuffer expected = ByteBuffer.allocateDirect(3); in testCorrectMessageParsing()
96 ByteBuffer expected = ByteBuffer.allocateDirect(12); in testCorrectMessageParsing()
106 ByteBuffer expected = ByteBuffer.allocateDirect(14); in testCorrectMessageParsing()
118 ByteBuffer expected = ByteBuffer.allocateDirect(8); in testCorrectMessageParsing()
[all …]
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/
DCoreImpl.java27 import java.nio.ByteBuffer;
82 mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8), 8); in CoreImpl()
106 ByteBuffer buffer = allocateDirectBuffer(handles.size() * 16 + 4); in waitMany()
138 ByteBuffer buffer = allocateDirectBuffer(8); in wait()
154 ByteBuffer optionsBuffer = null; in createMessagePipe()
174 ByteBuffer optionsBuffer = null; in createDataPipe()
197 ByteBuffer optionsBuffer = null; in createSharedBuffer()
277 void writeMessage(MessagePipeHandleImpl pipeHandle, ByteBuffer bytes, in writeMessage()
279 ByteBuffer handlesBuffer = null; in writeMessage()
306 ByteBuffer bytes, int maxNumberOfHandles, MessagePipeHandle.ReadFlags flags) { in readMessage()
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java29 import java.nio.ByteBuffer;
56 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled()
57 return ByteBuffer.allocate(size); in BufferAllocator.unpooled()
62 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR()
63 return ByteBuffer.allocate(size); in HEAP_NO_ALLOCATOR()
68 ByteBuffer newBuffer(int size) { in DIRECT()
69 return ByteBuffer.allocateDirect(size); in DIRECT()
73 abstract ByteBuffer newBuffer(int size); in newBuffer()
118 private ByteBuffer clientApplicationBuffer;
119 private ByteBuffer clientPacketBuffer;
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DIsoTypeReader.java19 import java.nio.ByteBuffer;
24 public static long readUInt32BE(ByteBuffer bb) { in readUInt32BE()
34 public static long readUInt32(ByteBuffer bb) { in readUInt32()
42 public static int readUInt24(ByteBuffer bb) { in readUInt24()
50 public static int readUInt16(ByteBuffer bb) { in readUInt16()
57 public static int readUInt16BE(ByteBuffer bb) { in readUInt16BE()
64 public static int readUInt8(ByteBuffer bb) { in readUInt8()
80 public static String readString(ByteBuffer byteBuffer) { in readString()
90 public static String readString(ByteBuffer byteBuffer, int length) { in readString()
97 public static long readUInt64(ByteBuffer byteBuffer) { in readUInt64()
[all …]
DIsoTypeWriter.java18 import java.nio.ByteBuffer;
22 public static void writeUInt64(ByteBuffer bb, long u) { in writeUInt64()
26 public static void writeUInt32(ByteBuffer bb, long u) { in writeUInt32()
31 public static void writeUInt32BE(ByteBuffer bb, long u) { in writeUInt32BE()
39 public static void writeUInt24(ByteBuffer bb, int i) { in writeUInt24()
47 public static void writeUInt16(ByteBuffer bb, int i) { in writeUInt16()
53 public static void writeUInt16BE(ByteBuffer bb, int i) { in writeUInt16BE()
59 public static void writeUInt8(ByteBuffer bb, int i) { in writeUInt8()
65 public static void writeFixedPont1616(ByteBuffer bb, double v) { in writeFixedPont1616()
73 public static void writeFixedPont88(ByteBuffer bb, double v) { in writeFixedPont88()
[all …]
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DAesGcmTest.java22 import java.nio.ByteBuffer;
226 ByteBuffer ptBuffer = ByteBuffer.wrap(test.pt); in testByteBuffer()
229 ByteBuffer ctBuffer = ByteBuffer.allocate(outputSize); in testByteBuffer()
238 ByteBuffer decrypted = ByteBuffer.allocate(outputSize); in testByteBuffer()
253 ByteBuffer ptBuffer = ByteBuffer.wrap(backingArray); in testByteBufferAlias()
256 ByteBuffer ctBuffer = ByteBuffer.wrap(backingArray); in testByteBufferAlias()
262 ByteBuffer decrypted = ByteBuffer.wrap(backingArray); in testByteBufferAlias()
275 ByteBuffer ptBuffer = ByteBuffer.wrap(test.pt).asReadOnlyBuffer(); in testReadOnlyByteBuffer()
278 ByteBuffer ctBuffer = ByteBuffer.allocate(outputSize); in testReadOnlyByteBuffer()
288 ByteBuffer decrypted = ByteBuffer.allocate(outputSize); in testReadOnlyByteBuffer()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/
DPlayReadyHeader.java12 import java.nio.ByteBuffer;
48 public void parse(ByteBuffer byteBuffer) { in parse()
65 public ByteBuffer getData() { in getData()
72 ByteBuffer byteBuffer = ByteBuffer.allocate(size); in getData()
79 ByteBuffer tmp4debug = record.getValue(); in getData()
113 public static List<PlayReadyRecord> createFor(ByteBuffer byteBuffer, int recordCount) { in createFor()
133 record.parse((ByteBuffer) byteBuffer.slice().limit(length)); in createFor()
141 public abstract void parse(ByteBuffer bytes); in parse()
154 public abstract ByteBuffer getValue(); in getValue()
164 public void parse(ByteBuffer bytes) { in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUBinary.java19 import java.nio.ByteBuffer;
57 static boolean validate(ByteBuffer bytes) { in validate()
80 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
96 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
99 ByteBuffer data = bytes.duplicate(); in getData()
108 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
123 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
148 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
156 private static int getDataOffset(ByteBuffer bytes, int index) {
170 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUBinary.java18 import java.nio.ByteBuffer;
53 static boolean validate(ByteBuffer bytes) { in validate()
76 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
92 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
95 ByteBuffer data = bytes.duplicate(); in getData()
104 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
119 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
144 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
152 private static int getDataOffset(ByteBuffer bytes, int index) {
166 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DMediaDataBox.java28 import java.nio.ByteBuffer;
56 ByteBuffer header;
64 private Map<Long, Reference<ByteBuffer>> cache = new HashMap<Long, Reference<ByteBuffer>>();
71 private ByteBuffer content;
118 ByteBuffer h2 = ByteBuffer.allocate(header.limit()); in checkStillOk()
138 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse()
148 cache.put(0l, new SoftReference<ByteBuffer>(content)); in parse()
152 public synchronized ByteBuffer getContent(long offset, int length) { in getContent()
156 ByteBuffer cacheEntry = cache.get(chacheEntryOffset).get(); in getContent()
160 ByteBuffer cachedSample = cacheEntry.slice(); in getContent()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DByteBufferHelper.java18 import java.nio.ByteBuffer;
27 public static List<ByteBuffer> mergeAdjacentBuffers(List<ByteBuffer> samples) { in mergeAdjacentBuffers()
28 ArrayList<ByteBuffer> nuSamples = new ArrayList<ByteBuffer>(samples.size()); in mergeAdjacentBuffers()
29 for (ByteBuffer buffer : samples) { in mergeAdjacentBuffers()
33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers()
34ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffe… in mergeAdjacentBuffers()
41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DBufferType.java18 import java.nio.ByteBuffer;
28 ByteBuffer newBuffer(int size) { in newBuffer()
29 return ByteBuffer.allocate(size); in newBuffer()
34 ByteBuffer newBuffer(int size) { in newBuffer()
35 return ByteBuffer.allocateDirect(size); in newBuffer()
39 abstract ByteBuffer newBuffer(int size); in newBuffer()
41 ByteBuffer newApplicationBuffer(SSLEngine engine) { in newApplicationBuffer()
45 ByteBuffer newPacketBuffer(SSLEngine engine) { in newPacketBuffer()
DEngineWrapBenchmark.java39 import java.nio.ByteBuffer;
63 private final ByteBuffer messageBuffer;
64 private final ByteBuffer clientApplicationBuffer;
65 private final ByteBuffer clientPacketBuffer;
66 private final ByteBuffer serverApplicationBuffer;
67 private final ByteBuffer serverPacketBuffer;
68 private final ByteBuffer preEncryptedBuffer;
136 private void doWrap(ByteBuffer src, ByteBuffer dst) throws SSLException { in doWrap()
142 private void doUnwrap(ByteBuffer src, ByteBuffer dst) throws SSLException { in doUnwrap()
147 private void verifyResult(ByteBuffer src, SSLEngineResult result) { in verifyResult()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
DUnknownEntry.java21 import java.nio.ByteBuffer;
27 private ByteBuffer content;
32 public ByteBuffer getContent() { in getContent()
36 public void setContent(ByteBuffer content) { in setContent()
37 this.content = (ByteBuffer) content.duplicate().rewind(); in setContent()
41 public void parse(ByteBuffer byteBuffer) { in parse()
42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind(); in parse()
46 public ByteBuffer get() { in get()
52 ByteBuffer bb = content.duplicate(); in toString()
/external/flatbuffers/js/
Dflatbuffers.js154 this.bb = flatbuffers.ByteBuffer.allocate(initial_size);
556 var nbb = flatbuffers.ByteBuffer.allocate(new_buf_size);
802 flatbuffers.ByteBuffer = function(bytes) { class
822 flatbuffers.ByteBuffer.allocate = function(byte_size) {
823 return new flatbuffers.ByteBuffer(new Uint8Array(byte_size));
831 flatbuffers.ByteBuffer.prototype.bytes = function() {
840 flatbuffers.ByteBuffer.prototype.position = function() {
849 flatbuffers.ByteBuffer.prototype.setPosition = function(position) {
858 flatbuffers.ByteBuffer.prototype.capacity = function() {
866 flatbuffers.ByteBuffer.prototype.readInt8 = function(offset) {
[all …]
/external/flatbuffers/tests/
DphpTest.php22 $bb = Google\FlatBuffers\ByteBuffer::wrap($data);
97 function test_buffer(Assert $assert, Google\FlatBuffers\ByteBuffer $bb) {
277 $view = Google\FlatBuffers\ByteBuffer::wrap($builder->sizedByteArray());
337 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
342 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
348 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
355 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
363 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
372 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
379 $uut = Google\FlatBuffers\ByteBuffer::wrap($buffer);
[all …]
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java35 import java.nio.ByteBuffer;
56 private static void assertEquals(int width, int height, ByteBuffer actual, ByteBuffer expected) { in assertEquals()
80 private static ByteBuffer stripAlphaChannel(ByteBuffer rgbaBuffer) { in stripAlphaChannel()
84 final ByteBuffer rgbBuffer = ByteBuffer.allocateDirect(numberOfPixels * 3); in stripAlphaChannel()
104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering()
121 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testRgbRendering()
141 final ByteBuffer[] yuvPlanes = new ByteBuffer[3]; in testYuvRendering()
144 yuvPlanes[i] = ByteBuffer.allocateDirect(WIDTH * HEIGHT); in testYuvRendering()
168 final ByteBuffer data = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testYuvRendering()
244 public void draw(ByteBuffer rgbPlane) {
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DByteBufferWriterTest.java37 import java.nio.ByteBuffer;
48 testWrite(ByteBuffer.allocate(100)); in testHeapBuffer()
49 testWrite(ByteBuffer.allocate(1024 * 100)); in testHeapBuffer()
54 testWrite(ByteBuffer.allocateDirect(100)); in testDirectBuffer()
55 testWrite(ByteBuffer.allocateDirect(1024 * 100)); in testDirectBuffer()
58 private void testWrite(ByteBuffer buffer) throws IOException { in testWrite()
66 private void fillRandom(ByteBuffer buf) { in fillRandom()
74 private byte[] toArray(ByteBuffer buf) { in toArray()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DItemDataBox.java5 import java.nio.ByteBuffer;
11 ByteBuffer data = ByteBuffer.allocate(0);
19 public ByteBuffer getData() { in getData()
23 public void setData(ByteBuffer data) { in setData()
34 public void _parseDetails(ByteBuffer content) { in _parseDetails()
40 protected void getContent(ByteBuffer byteBuffer) { in getContent()
/external/google-breakpad/src/common/
Dbyte_cursor_unittest.cc43 using google_breakpad::ByteBuffer;
48 ByteBuffer buffer(data, 0); in TEST()
54 ByteBuffer buffer(data, sizeof(data)); in TEST()
60 ByteBuffer buffer(data, 0); in TEST()
67 ByteBuffer buffer(data, 0); in TEST()
74 ByteBuffer buffer(data, 0); in TEST()
81 ByteBuffer buffer(data, sizeof(data)); in TEST()
88 ByteBuffer buffer(data, sizeof(data)); in TEST()
96 ByteBuffer buffer(data, sizeof(data)); in TEST()
109 ByteBuffer buffer(data, sizeof(data)); in TEST()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptEngine.java71 import java.nio.ByteBuffer;
110 private static final ByteBuffer EMPTY = ByteBuffer.allocateDirect(0);
120 private ByteBuffer lazyDirectBuffer;
164 private final ByteBuffer[] singleSrcBuffer = new ByteBuffer[1];
165 private final ByteBuffer[] singleDstBuffer = new ByteBuffer[1];
641 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException { in unwrap()
653 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException { in unwrap()
664 public SSLEngineResult unwrap(final ByteBuffer src, final ByteBuffer[] dsts, final int offset, in unwrap()
675 SSLEngineResult unwrap(final ByteBuffer[] srcs, final ByteBuffer[] dsts) throws SSLException { in unwrap()
681 SSLEngineResult unwrap(final ByteBuffer[] srcs, int srcsOffset, final int srcsLength, in unwrap()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/
DAbstractBox.java30 import java.nio.ByteBuffer;
56 private ByteBuffer content;
57 private ByteBuffer deadBytes = null;
85 protected abstract void getContent(ByteBuffer byteBuffer); in getContent()
92 protected abstract void _parseDetails(ByteBuffer content); in _parseDetails()
103 …public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, Bo… in parse()
122 ByteBuffer bb = ByteBuffer.allocate(l2i(getSize()));
147 ByteBuffer content = this.content; in parseDetails()
164 protected void setDeadBytes(ByteBuffer newDeadBytes) { in setDeadBytes()
224 private boolean verify(ByteBuffer content) { in verify()
[all …]

12345678910>>...22