com.moesol.nio
Class UnsignedLongBuffer

java.lang.Object
  extended by com.moesol.nio.UnsignedLongBuffer
All Implemented Interfaces:
BufferMarker, Comparable

public class UnsignedLongBuffer
extends Object
implements BufferMarker, Comparable

Help getting bytes back as unsigned long (C size 4 bytes).


Constructor Summary
UnsignedLongBuffer(ByteBuffer b)
           
 
Method Summary
static UnsignedLongBuffer allocate(int length)
           
 int capacity()
           
 BufferMarker clear()
           
 int compareTo(Object o)
           
 boolean equals(Object arg0)
           
 BufferMarker flip()
           
 long get()
           
 long get(int offset)
           
 void get(long[] result)
           
 ByteBuffer getByteBuffer()
           
 int hashCode()
           
 boolean hasRemaining()
           
 boolean isReadOnly()
           
 int limit()
           
 BufferMarker limit(int newLimit)
           
 BufferMarker mark()
           
 UnsignedLongBuffer order(ByteOrder bo)
           
 int position()
           
 BufferMarker position(int newPosition)
           
 void put(int offset, long v)
           
 void put(long v)
           
 void put(long[] values)
           
 int remaining()
           
 BufferMarker reset()
           
 BufferMarker rewind()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsignedLongBuffer

public UnsignedLongBuffer(ByteBuffer b)
Method Detail

allocate

public static UnsignedLongBuffer allocate(int length)
Parameters:
length -
Returns:
allocated byte buffer

get

public long get()

get

public long get(int offset)

get

public void get(long[] result)

put

public void put(long v)

put

public void put(int offset,
                long v)

put

public void put(long[] values)

hasRemaining

public boolean hasRemaining()
Specified by:
hasRemaining in interface BufferMarker
Returns:
true if more remaining

remaining

public int remaining()
Specified by:
remaining in interface BufferMarker
Returns:
remaining

limit

public int limit()
Specified by:
limit in interface BufferMarker
Returns:
limit

capacity

public int capacity()
Specified by:
capacity in interface BufferMarker
Returns:
capacity

getByteBuffer

public ByteBuffer getByteBuffer()
Specified by:
getByteBuffer in interface BufferMarker
Returns:
underlying byte buffer

order

public UnsignedLongBuffer order(ByteOrder bo)
Parameters:
bo -

flip

public BufferMarker flip()
Specified by:
flip in interface BufferMarker

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

position

public int position()
Specified by:
position in interface BufferMarker

position

public BufferMarker position(int newPosition)
Specified by:
position in interface BufferMarker

limit

public BufferMarker limit(int newLimit)
Specified by:
limit in interface BufferMarker

mark

public BufferMarker mark()
Specified by:
mark in interface BufferMarker

reset

public BufferMarker reset()
Specified by:
reset in interface BufferMarker

clear

public BufferMarker clear()
Specified by:
clear in interface BufferMarker

rewind

public BufferMarker rewind()
Specified by:
rewind in interface BufferMarker

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface BufferMarker

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.