Home
last modified time | relevance | path

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

12345678910>>...36

/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 …]
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiHandshakerTest.java32 import java.nio.ByteBuffer;
104 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart()
105 verify(mockClient, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart()
107 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerFalseStart()
113 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerStartServer()
114 ByteBuffer outputFrame = ByteBuffer.allocate(OUT_FRAME_SIZE); in processBytesFromPeerStartServer()
116 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServer()
127 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerStartServerEmptyOutput()
128 ByteBuffer emptyOutputFrame = ByteBuffer.allocate(0); in processBytesFromPeerStartServerEmptyOutput()
130 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerEmptyOutput()
[all …]
DAltsHandshakerClientTest.java36 import java.nio.ByteBuffer;
87 ByteBuffer outFrame = handshaker.startClientHandshake(); in startClientHandshakeSuccess()
100 ByteBuffer outFrame = handshaker.startClientHandshake(); in startClientHandshakeWithOptions()
124 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeFailure()
137 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeSuccess()
138 ByteBuffer outFrame = handshaker.startServerHandshake(inBytes); in startServerHandshakeSuccess()
152 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeEmptyOutFrame()
153 ByteBuffer outFrame = handshaker.startServerHandshake(inBytes); in startServerHandshakeEmptyOutFrame()
167 ByteBuffer inBytes = ByteBuffer.allocate(IN_BYTES_SIZE); in startServerHandshakeWithPrefixBuffer()
169 ByteBuffer outFrame = handshaker.startServerHandshake(inBytes); in startServerHandshakeWithPrefixBuffer()
[all …]
/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()
47 var uut = new ByteBuffer(1); in ByteBuffer_PutByteCannotPutAtOffsetPastLength()
56 var uut = new ByteBuffer(buffer); in ByteBuffer_PutShortPopulatesBufferCorrectly()
68 var uut = new ByteBuffer(2); in ByteBuffer_PutShortCannotPutAtOffsetPastLength()
77 var uut = new ByteBuffer(1); in ByteBuffer_PutShortChecksLength()
84 var uut = new ByteBuffer(2); in ByteBuffer_PutShortChecksLengthAndOffset()
93 var uut = new ByteBuffer(buffer); in ByteBuffer_PutIntPopulatesBufferCorrectly()
107 var uut = new ByteBuffer(4); in ByteBuffer_PutIntCannotPutAtOffsetPastLength()
114 var uut = new ByteBuffer(1); in ByteBuffer_PutIntChecksLength()
[all …]
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAesGcmAeadCrypter.java21 import java.nio.ByteBuffer;
47 ByteBuffer ciphertext, ByteBuffer plaintext, @Nullable ByteBuffer aad, byte[] nonce) in encryptAad()
61 ByteBuffer plaintext, ByteBuffer ciphertext, @Nullable ByteBuffer aad, byte[] nonce) in decryptAad()
75 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, byte[] nonce) in encrypt()
81 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt()
87 public void decrypt(ByteBuffer plaintext, ByteBuffer ciphertext, byte[] nonce) in decrypt()
93 public void decrypt(ByteBuffer plaintext, ByteBuffer ciphertext, ByteBuffer aad, byte[] nonce) in decrypt()
DAltsFraming.java20 import java.nio.ByteBuffer;
59 static ByteBuffer toFrame(ByteBuffer input, int dataSize) throws GeneralSecurityException { in toFrame()
65 ByteBuffer inputAlias = input.duplicate(); in toFrame()
70 ByteBuffer output = producer.getRawFrame(); in toFrame()
117 private ByteBuffer buffer;
121 buffer = ByteBuffer.allocate(maxFrameSize); in Producer()
144 boolean readBytes(ByteBuffer input) throws GeneralSecurityException { in readBytes()
203 ByteBuffer getRawFrame() { in getRawFrame()
207 ByteBuffer result = buffer.duplicate(); in getRawFrame()
254 private ByteBuffer buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);
[all …]
DAeadCrypter.java19 import java.nio.ByteBuffer;
36 void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, byte[] nonce) in encrypt()
49 void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt()
61 void decrypt(ByteBuffer plaintext, ByteBuffer ciphertext, byte[] nonce) in decrypt()
74 void decrypt(ByteBuffer plaintext, ByteBuffer ciphertext, ByteBuffer aad, byte[] nonce) in decrypt()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DValidationTestUtilTest.java17 import java.nio.ByteBuffer;
32 String input, boolean isInputValid, ByteBuffer expectedData, int expectedHandlesCount) { in checkInputParser()
53 ByteBuffer expected = ByteBuffer.allocateDirect(0); in testCorrectMessageParsing()
61 ByteBuffer expected = ByteBuffer.allocateDirect(0); in testCorrectMessageParsing()
69 ByteBuffer expected = ByteBuffer.allocateDirect(17); in testCorrectMessageParsing()
83 ByteBuffer expected = ByteBuffer.allocateDirect(15); in testCorrectMessageParsing()
95 ByteBuffer expected = ByteBuffer.allocateDirect(3); in testCorrectMessageParsing()
106 ByteBuffer expected = ByteBuffer.allocateDirect(12); in testCorrectMessageParsing()
116 ByteBuffer expected = ByteBuffer.allocateDirect(14); in testCorrectMessageParsing()
128 ByteBuffer expected = ByteBuffer.allocateDirect(8); in testCorrectMessageParsing()
[all …]
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dbyte_buffer.h35 class ByteBuffer; variable
55 class ByteBuffer final {
58 ByteBuffer() : buffer_(nullptr) {} in ByteBuffer() function
61 ByteBuffer(const Slice* slices, size_t nslices) { in ByteBuffer() function
75 static_assert(sizeof(ByteBuffer) == sizeof(grpc_byte_buffer*), in ByteBuffer()
88 ByteBuffer(const ByteBuffer& buf);
90 ~ByteBuffer() { in ~ByteBuffer()
96 ByteBuffer& operator=(const ByteBuffer&);
128 void Swap(ByteBuffer* other) { in Swap()
138 friend class SerializationTraits<ByteBuffer, void>;
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAbstractConscryptEngine.java20 import java.nio.ByteBuffer;
108 public abstract SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException; in unwrap()
111 public abstract SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException; in unwrap()
114 public abstract SSLEngineResult unwrap(final ByteBuffer src, final ByteBuffer[] dsts, in unwrap()
117 abstract SSLEngineResult unwrap(final ByteBuffer[] srcs, final ByteBuffer[] dsts) in unwrap()
120 abstract SSLEngineResult unwrap(final ByteBuffer[] srcs, int srcsOffset, final int srcsLength, in unwrap()
121 final ByteBuffer[] dsts, final int dstsOffset, final int dstsLength) in unwrap()
125 public abstract SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException; in wrap()
129 ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer dst) throws SSLException; in wrap()
/external/conscrypt/common/src/main/java/org/conscrypt/
DAbstractConscryptEngine.java19 import java.nio.ByteBuffer;
107 public abstract SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException; in unwrap()
110 public abstract SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException; in unwrap()
113 public abstract SSLEngineResult unwrap(final ByteBuffer src, final ByteBuffer[] dsts, in unwrap()
116 abstract SSLEngineResult unwrap(final ByteBuffer[] srcs, final ByteBuffer[] dsts) in unwrap()
119 abstract SSLEngineResult unwrap(final ByteBuffer[] srcs, int srcsOffset, final int srcsLength, in unwrap()
120 final ByteBuffer[] dsts, final int dstsOffset, final int dstsLength) in unwrap()
124 public abstract SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException; in wrap()
128 ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer dst) throws SSLException; in wrap()
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUBinary.java18 import java.nio.ByteBuffer;
54 static boolean validate(ByteBuffer bytes) { in validate()
77 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
93 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
96 ByteBuffer data = bytes.duplicate(); in getData()
105 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
120 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
145 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
153 private static int getDataOffset(ByteBuffer bytes, int index) {
167 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUBinary.java19 import java.nio.ByteBuffer;
58 static boolean validate(ByteBuffer bytes) { in validate()
81 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { in startsWithPackageName()
97 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { in getData()
100 ByteBuffer data = bytes.duplicate(); in getData()
109 …static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names… in addBaseNamesInFolder()
124 private static int binarySearch(ByteBuffer bytes, CharSequence key) { in binarySearch()
149 private static int getNameOffset(ByteBuffer bytes, int index) { in getNameOffset()
157 private static int getDataOffset(ByteBuffer bytes, int index) {
171 static boolean addBaseName(ByteBuffer bytes, int index,
[all …]
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/impl/
DCoreImpl.java28 import java.nio.ByteBuffer;
82 mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8), 8); in CoreImpl()
99 ByteBuffer optionsBuffer = null; in createMessagePipe()
119 ByteBuffer optionsBuffer = null; in createDataPipe()
142 ByteBuffer optionsBuffer = null; in createSharedBuffer()
211 ByteBuffer buffer = allocateDirectBuffer(8); in queryHandleSignalsState()
221 void writeMessage(MessagePipeHandleImpl pipeHandle, ByteBuffer bytes, in writeMessage()
223 ByteBuffer handlesBuffer = null; in writeMessage()
288 DataPipeConsumerHandleImpl handle, ByteBuffer elements, DataPipe.ReadFlags flags) { in readData()
306 ByteBuffer beginReadData( in beginReadData()
[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/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/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java34 import java.nio.ByteBuffer;
68 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled()
69 return ByteBuffer.allocate(size); in BufferAllocator.unpooled()
74 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR()
75 return ByteBuffer.allocate(size); in HEAP_NO_ALLOCATOR()
80 ByteBuffer newBuffer(int size) { in DIRECT()
81 return ByteBuffer.allocateDirect(size); in DIRECT()
85 abstract ByteBuffer newBuffer(int size); in newBuffer()
236 ByteBuffer message = newMessage(MESSAGE_SIZE); in exchangeMessages()
241 ByteBuffer[] encryptedBuffers = new ByteBuffer[numMessages]; in exchangeMessages()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptEngineTest.java35 import java.nio.ByteBuffer;
75 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled()
76 return ByteBuffer.allocate(size); in BufferAllocator.unpooled()
81 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR()
82 return ByteBuffer.allocate(size); in HEAP_NO_ALLOCATOR()
87 ByteBuffer newBuffer(int size) { in DIRECT()
88 return ByteBuffer.allocateDirect(size); in DIRECT()
92 abstract ByteBuffer newBuffer(int size); in newBuffer()
243 ByteBuffer message = newMessage(MESSAGE_SIZE); in exchangeMessages()
248 ByteBuffer[] encryptedBuffers = new ByteBuffer[numMessages]; in exchangeMessages()
[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/flatbuffers/js/
Dflatbuffers.js154 this.bb = flatbuffers.ByteBuffer.allocate(initial_size);
569 var nbb = flatbuffers.ByteBuffer.allocate(new_buf_size);
820 flatbuffers.ByteBuffer = function(bytes) { class
841 flatbuffers.ByteBuffer.allocate = function(byte_size) {
842 return new flatbuffers.ByteBuffer(new Uint8Array(byte_size));
845 flatbuffers.ByteBuffer.prototype.clear = function() {
854 flatbuffers.ByteBuffer.prototype.bytes = function() {
863 flatbuffers.ByteBuffer.prototype.position = function() {
872 flatbuffers.ByteBuffer.prototype.setPosition = function(position) {
881 flatbuffers.ByteBuffer.prototype.capacity = function() {
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DSeekableInMemoryByteChannelTest.java24 import java.nio.ByteBuffer;
41 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldReadContentsProperly()
55 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length + 1); in shouldReadContentsWhenBiggerBufferSupplied()
69 ByteBuffer readBuffer = ByteBuffer.allocate(4); in shouldReadDataFromSetPosition()
84 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldSignalEOFWhenPositionAtTheEnd()
100 c.read(ByteBuffer.allocate(1)); in shouldThrowExceptionOnReadingClosedChannel()
107 ByteBuffer inData = ByteBuffer.wrap(testData); in shouldWriteDataProperly()
121 ByteBuffer inData = ByteBuffer.wrap(testData); in shouldWriteDataProperlyAfterPositionSet()
122ByteBuffer expectedData = ByteBuffer.allocate(testData.length + 5).put(testData, 0, 5).put(testDat… in shouldWriteDataProperlyAfterPositionSet()
141 c.write(ByteBuffer.allocate(1)); in shouldThrowExceptionOnWritingToClosedChannel()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResourceTypes.java12 import java.nio.ByteBuffer;
60 private final ByteBuffer buf;
63 WithOffset(ByteBuffer buf, int offset) { in WithOffset()
68 public final ByteBuffer myBuf() { in myBuf()
113 public ResChunk_header(ByteBuffer buf, int offset) { in ResChunk_header()
120 public static void write(ByteBuffer buf, short type, Runnable header, Runnable contents) { in write()
324 public Res_value(ByteBuffer buf, int offset) { in Res_value()
349 public static void write(ByteBuffer buf, int dataType, int data) { in write()
395 public ResTable_ref(ByteBuffer buf, int offset) { in ResTable_ref()
421 public ResStringPool_ref(ByteBuffer buf, int offset) { in ResStringPool_ref()
[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()

12345678910>>...36