HomeSort by relevance Sort by last modified time
    Searched refs:ByteBuffer (Results 26 - 50 of 808) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/chromium/third_party/libjingle/source/talk/base/
bytebuffer.cc 28 #include "talk/base/bytebuffer.h"
41 ByteBuffer::ByteBuffer() {
48 ByteBuffer::ByteBuffer(const char* bytes, size_t len) {
56 ByteBuffer::ByteBuffer(const char* bytes) {
64 ByteBuffer::~ByteBuffer() {
68 bool ByteBuffer::ReadUInt8(uint8* val)
    [all...]
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
SSLEngineTest.java 20 import java.nio.ByteBuffer;
83 * Test for <code>wrap(ByteBuffer src, ByteBuffer dst)</code> method
95 ByteBuffer bbN = null;
96 ByteBuffer bb = ByteBuffer.allocate(10);
102 ByteBuffer roBb = bb.asReadOnlyBuffer();
109 * Test for <code>wrap(ByteBuffer[] srcs, ByteBuffer dst)</code> method
123 ByteBuffer[] bbNA = null
    [all...]
  /libcore/luni/src/main/java/java/nio/
ByteBuffer.java 37 public abstract class ByteBuffer extends Buffer implements Comparable<ByteBuffer> {
52 public static ByteBuffer allocate(int capacity) {
68 public static ByteBuffer allocateDirect(int capacity) {
85 public static ByteBuffer wrap(byte[] array) {
107 public static ByteBuffer wrap(byte[] array, int start, int byteCount) {
109 ByteBuffer buf = new ByteArrayBuffer(array);
115 ByteBuffer(int capacity, MemoryBlock block) {
237 public abstract ByteBuffer asReadOnlyBuffer();
266 public abstract ByteBuffer compact()
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/channels/
DatagramChannelTest.java 20 import java.nio.ByteBuffer;
25 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer();
35 dc.read(new ByteBuffer[] { readOnly });
40 dc.read(new ByteBuffer[] { readOnly }, 0, 1);
53 assertNull(dc.receive(ByteBuffer.allocate(2048)));
  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
SSLEngineTest.java 21 import java.nio.ByteBuffer;
384 * javax.net.ssl.SSLEngine#unwrap(ByteBuffer src, ByteBuffer[] dsts,
392 ByteBuffer bbs = ByteBuffer.wrap(new byte[] {1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,31,2,3,1,2,3,1,2,3,1,2,3});
393 ByteBuffer bbd = ByteBuffer.allocate(100);
395 clientEngine.engine.unwrap(bbs, new ByteBuffer[] { bbd }, 0, 1);
403 * javax.net.ssl.SSLEngine#unwrap(ByteBuffer src, ByteBuffer[] dsts
    [all...]
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
BooleanSerializer.java 37 import java.nio.ByteBuffer;
47 public Boolean readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
ByteSerializer.java 37 import java.nio.ByteBuffer;
47 public Byte readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
CharSerializer.java 37 import java.nio.ByteBuffer;
47 public Character readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
DoubleSerializer.java 37 import java.nio.ByteBuffer;
47 public Double readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
FloatSerializer.java 37 import java.nio.ByteBuffer;
47 public Float readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
IntSerializer.java 37 import java.nio.ByteBuffer;
47 public Integer readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
LongSerializer.java 37 import java.nio.ByteBuffer;
47 public Long readObject(ByteBuffer data, Class c) throws IOException {
51 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
SerializableSerializer.java 38 import java.nio.ByteBuffer;
49 public Serializable readObject(ByteBuffer data, Class c) throws IOException {
53 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
ShortSerializer.java 37 import java.nio.ByteBuffer;
46 public Short readObject(ByteBuffer data, Class c) throws IOException {
50 public void writeObject(ByteBuffer buffer, Object object) throws IOException {
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
IsoTypeWriter.java 18 import java.nio.ByteBuffer;
22 public static void writeUInt64(ByteBuffer bb, long u) {
26 public static void writeUInt32(ByteBuffer bb, long u) {
31 public static void writeUInt32BE(ByteBuffer bb, long u) {
39 public static void writeUInt24(ByteBuffer bb, int i) {
47 public static void writeUInt16(ByteBuffer bb, int i) {
53 public static void writeUInt16BE(ByteBuffer bb, int i) {
59 public static void writeUInt8(ByteBuffer bb, int i) {
65 public static void writeFixedPont1616(ByteBuffer bb, double v) {
73 public static void writeFixedPont88(ByteBuffer bb, double v)
    [all...]
IsoTypeReaderVariable.java 18 import java.nio.ByteBuffer;
22 public static long read(ByteBuffer bb, int bytes) {
  /libcore/crypto/src/main/java/org/conscrypt/
SSLBufferedInput.java 21 import java.nio.ByteBuffer;
24 * This is a wrapper input stream for ByteBuffer data source.
26 * about number of cunsumed bytes from the source ByteBuffer.
27 * The source ByteBuffer object can be reseted.
29 * ByteBuffer data sources.
33 private ByteBuffer in;
45 protected void setSourceBuffer(ByteBuffer in) {
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
UnknownEntry.java 21 import java.nio.ByteBuffer;
27 private ByteBuffer content;
32 public ByteBuffer getContent() {
36 public void setContent(ByteBuffer content) {
37 this.content = (ByteBuffer) content.duplicate().rewind();
41 public void parse(ByteBuffer byteBuffer) {
42 this.content = (ByteBuffer) byteBuffer.duplicate().rewind();
46 public ByteBuffer get()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
WrappedByteBufferTest.java 19 import java.nio.ByteBuffer;
25 buf = ByteBuffer.wrap(new byte[BUFFER_LENGTH]);
36 * @tests java.nio.ByteBuffer#allocate(byte[],int,int)
42 ByteBuffer.wrap(array, -1, 0);
48 ByteBuffer.wrap(array, BUFFER_LENGTH + 1, 0);
54 ByteBuffer.wrap(array, 0, -1);
60 ByteBuffer.wrap(array, 0, BUFFER_LENGTH + 1);
66 ByteBuffer.wrap(array, 1, Integer.MAX_VALUE);
72 ByteBuffer.wrap(array, Integer.MAX_VALUE, 1);
78 ByteBuffer.wrap((byte[])null, 1, Integer.MAX_VALUE)
    [all...]
  /libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
UTF16CharsetDecoderTest.java 20 import java.nio.ByteBuffer;
47 protected ByteBuffer getByteBuffer() {
58 return ByteBuffer.wrap(b);
61 protected ByteBuffer getHeadlessByteBuffer() {
62 ByteBuffer b = getByteBuffer();
66 return ByteBuffer.wrap(bytes);
98 ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException {
102 ByteBuffer getMalformedByteBuffer() throws UnsupportedEncodingException {
105 // ByteBuffer buffer = ByteBuffer.allocate(100)
    [all...]
  /libcore/luni/src/main/java/java/nio/channels/
DatagramChannel.java 23 import java.nio.ByteBuffer;
178 public abstract SocketAddress receive(ByteBuffer target) throws IOException;
216 public abstract int send(ByteBuffer source, SocketAddress address) throws IOException;
228 * @see java.nio.channels.ReadableByteChannel#read(java.nio.ByteBuffer)
247 public abstract int read(ByteBuffer target) throws IOException;
259 * @see java.nio.channels.ScatteringByteChannel#read(java.nio.ByteBuffer[],
287 public abstract long read(ByteBuffer[] targets, int offset, int length)
300 * @see java.nio.channels.ScatteringByteChannel#read(java.nio.ByteBuffer[])
319 public synchronized final long read(ByteBuffer[] targets)
332 * @see java.nio.channels.WritableByteChannel#write(java.nio.ByteBuffer)
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/base/
bytebuffer.cc 28 #include "talk/base/bytebuffer.h"
41 ByteBuffer::ByteBuffer() {
45 ByteBuffer::ByteBuffer(ByteOrder byte_order) {
49 ByteBuffer::ByteBuffer(const char* bytes, size_t len) {
53 ByteBuffer::ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order) {
57 ByteBuffer::ByteBuffer(const char* bytes)
    [all...]
  /libcore/luni/src/main/java/javax/net/ssl/
SSLEngine.java 20 import java.nio.ByteBuffer;
325 public abstract SSLEngineResult unwrap(ByteBuffer src,
326 ByteBuffer[] dsts,
359 public abstract SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst)
382 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException {
383 return unwrap(src, new ByteBuffer[] { dst }, 0, 1);
407 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException
    [all...]
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/
NioEndpoint.java 39 import java.nio.ByteBuffer;
54 protected static final ByteBuffer CLOSE_MARKER = ByteBuffer.allocate(0);
59 private ConcurrentLinkedQueue<ByteBuffer> outbound = new ConcurrentLinkedQueue<ByteBuffer>();
121 protected void send( ByteBuffer data, boolean copy, boolean wakeup )
123 // We create a ByteBuffer per endpoint since we
126 ByteBuffer buffer;
131 buffer = ByteBuffer.allocate(data.remaining());
147 protected ByteBuffer peekPending(
    [all...]
  /frameworks/base/media/java/android/media/
Image.java 19 import java.nio.ByteBuffer;
28 * {@link java.nio.ByteBuffer ByteBuffers}. Each buffer is encapsulated in a
56 * pixel data in each in ByteBuffer.
125 * {@link ByteBuffer ByteBuffers} returned by an earlier
139 * ByteBuffer will fail.</p>
167 * <p>Get a direct {@link java.nio.ByteBuffer ByteBuffer}
171 * {@link java.nio.ByteBuffer#isDirect isDirect} return {@code true}, so
177 public abstract ByteBuffer getBuffer();

Completed in 1001 milliseconds

12 3 4 5 6 7 8 91011>>