summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/runtime/NativeBuffer.java
blob: d3587e3537626396a2b0e13df1da233291d032cf (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

/*
 * Created on Tuesday, March 30 2010 18:22
 */
package com.jogamp.gluegen.runtime;

import java.nio.ByteBuffer;

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

    public boolean hasRemaining();

    public boolean isDirect();

    public int limit();

    public int position();

    public int remaining();

    public long[] array();

    public int capacity();
/*
    public B rewind();

    public B position(int newPos);

    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);

    public ByteBuffer getBuffer();


}