summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/NativeBuffer.java
blob: 170297a2e80b0bfbe06cff004ae5fdb1195ae46c (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
/*
 * 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>*/ { // 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();


}