aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/NativeBuffer.java
blob: 99a5cbc0856a856790d328b1700848c2e855b077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Created on Tuesday, March 30 2010 18:22
 */
package com.jogamp.common.nio;

import java.nio.ByteBuffer;

/**
 * Hardware independent container for various kinds of buffers.
 *
 * @author Michael Bien
 * @author Sven Gothel
 */
public interface NativeBuffer/*<B extends NativeBuffer>*/ {

    public int limit();

    public int capacity();

    public int position();

    public NativeBuffer position(int newPos);

    public int remaining();

    public boolean hasRemaining();

    public NativeBuffer rewind();

    public boolean hasArray();

    public int arrayOffset();

    public ByteBuffer getBuffer();

    public boolean isDirect();

/*
    public long[] array();

    public B rewind();

    public B put(int index, long value);

    public B put(long value);

    public B put(B src);

    public long get();

    public long get(int idx);
*/

}