|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.network.AOByteBuffer
public class AOByteBuffer
Constructor Summary | |
---|---|
AOByteBuffer(byte[] data)
creates a new byte buffer that is the length of the byte array passed in and places the bytes into the new buffer. |
|
AOByteBuffer(java.nio.ByteBuffer data)
|
|
AOByteBuffer(int size)
|
Method Summary | |
---|---|
byte[] |
array()
returns the backing array - not useful to send across network the backing array encoding format may not be the same as what you entered and therefore you should use getBytes instead. |
int |
capacity()
|
AOByteBuffer |
clear()
|
java.lang.Object |
clone()
returns a copy of the byte buffer |
AOByteBuffer |
cloneAtOffset(int offset,
int length)
Returns the AOByteBuffer gotten by skipping the first offset bytes in the original buffer, and copying out by length |
int |
compareTo(AOByteBuffer buffer)
|
byte[] |
copyBytes()
basically helper function to getBytes that rewinds first and returns a copy of the bytes. |
byte[] |
copyBytesFromZeroToLimit()
this version of copyBytes gets the same bytes as the version above, with the same goofy business of ignoring the starting position, but this version also doesn't change position. |
AOByteBuffer |
flip()
|
AOVector |
getAOVector()
|
boolean |
getBoolean()
|
byte |
getByte()
|
byte[] |
getByteArray()
|
AOByteBuffer |
getByteBuffer()
|
AOByteBuffer |
getBytes(byte[] dst,
int offset,
int length)
|
java.util.Collection<java.io.Serializable> |
getCollection()
|
Color |
getColor()
|
double |
getDouble()
|
java.io.Serializable |
getEncodedObject()
|
float |
getFloat()
|
int |
getInt()
|
long |
getLong()
|
java.nio.ByteBuffer |
getNioBuf()
|
OID |
getOID()
|
Point |
getPoint()
|
java.util.Map<java.lang.String,java.io.Serializable> |
getPropertyMap()
|
Quaternion |
getQuaternion()
|
short |
getShort()
|
java.lang.String |
getString()
|
java.util.Map<java.lang.String,java.io.Serializable> |
getTreeMap()
|
boolean |
hasRemaining()
|
int |
limit()
|
AOByteBuffer |
limit(int newLimit)
|
static void |
main(java.lang.String[] args)
|
int |
position()
|
AOByteBuffer |
position(int newPos)
|
AOByteBuffer |
putAOVector(AOVector v)
|
AOByteBuffer |
putBoolean(boolean b)
|
AOByteBuffer |
putByte(byte b)
|
AOByteBuffer |
putByteArray(byte[] byteArray)
|
AOByteBuffer |
putByteBuffer(AOByteBuffer other)
|
AOByteBuffer |
putBytes(byte[] src,
int offset,
int length)
|
void |
putCollection(java.util.Collection<java.io.Serializable> collection)
Put a collection of serializable objects into the buffer. |
AOByteBuffer |
putColor(Color c)
|
AOByteBuffer |
putDouble(double d)
|
void |
putEncodedObject(java.io.Serializable val)
|
void |
putFilteredPropertyCollection(java.util.Collection<java.lang.String> properties,
java.util.Set<java.lang.String> filteredProps)
This variant of putCollection excludes sending the entries that are contained in the filteredProps. |
void |
putFilteredPropertyMap(java.util.Map<java.lang.String,java.io.Serializable> propertyMap,
java.util.Set<java.lang.String> filteredProps)
This variant of putPropertyMap excludes sending the keys and associated values that are in the filteredProps. |
AOByteBuffer |
putFloat(float f)
|
static AOByteBuffer |
putInt(AOByteBuffer buffer,
int i)
|
AOByteBuffer |
putInt(int i)
|
AOByteBuffer |
putLong(long l)
|
AOByteBuffer |
putLong(java.lang.Long l)
|
AOByteBuffer |
putMsgTypeString(MessageType msgType)
|
AOByteBuffer |
putOID(OID oid)
|
AOByteBuffer |
putPoint(Point p)
|
void |
putPropertyMap(java.util.Map<java.lang.String,java.io.Serializable> propertyMap)
Put a map of string to serializable objects into the buffer. |
AOByteBuffer |
putQuaternion(Quaternion q)
|
AOByteBuffer |
putShort(short s)
|
static AOByteBuffer |
putString(AOByteBuffer buffer,
java.lang.String str)
|
AOByteBuffer |
putString(java.lang.String s)
|
int |
remaining()
|
AOByteBuffer |
rewind()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AOByteBuffer(int size)
public AOByteBuffer(byte[] data)
public AOByteBuffer(java.nio.ByteBuffer data)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public AOByteBuffer cloneAtOffset(int offset, int length)
public byte[] array()
public int capacity()
public AOByteBuffer clear()
public AOByteBuffer flip()
public boolean hasRemaining()
public int limit()
public AOByteBuffer limit(int newLimit)
public int position()
public AOByteBuffer position(int newPos)
public int remaining()
public AOByteBuffer rewind()
public byte getByte()
public AOByteBuffer getBytes(byte[] dst, int offset, int length)
public byte[] copyBytes()
public byte[] copyBytesFromZeroToLimit()
public boolean getBoolean()
public double getDouble()
public float getFloat()
public short getShort()
public int getInt()
public long getLong()
public java.lang.String getString()
public OID getOID()
public Point getPoint()
public Quaternion getQuaternion()
public AOVector getAOVector()
public Color getColor()
public AOByteBuffer getByteBuffer()
public byte[] getByteArray()
public AOByteBuffer putByte(byte b)
public AOByteBuffer putBytes(byte[] src, int offset, int length)
public AOByteBuffer putBoolean(boolean b)
public AOByteBuffer putDouble(double d)
public AOByteBuffer putFloat(float f)
public AOByteBuffer putShort(short s)
public AOByteBuffer putInt(int i)
public AOByteBuffer putLong(long l)
public AOByteBuffer putLong(java.lang.Long l)
public AOByteBuffer putString(java.lang.String s)
public AOByteBuffer putMsgTypeString(MessageType msgType)
public AOByteBuffer putOID(OID oid)
public AOByteBuffer putPoint(Point p)
public AOByteBuffer putQuaternion(Quaternion q)
public AOByteBuffer putAOVector(AOVector v)
public AOByteBuffer putColor(Color c)
public AOByteBuffer putByteBuffer(AOByteBuffer other)
public AOByteBuffer putByteArray(byte[] byteArray)
public java.nio.ByteBuffer getNioBuf()
public void putEncodedObject(java.io.Serializable val)
public java.io.Serializable getEncodedObject()
public void putCollection(java.util.Collection<java.io.Serializable> collection)
collection
- public void putPropertyMap(java.util.Map<java.lang.String,java.io.Serializable> propertyMap)
propertyMap
- public void putFilteredPropertyMap(java.util.Map<java.lang.String,java.io.Serializable> propertyMap, java.util.Set<java.lang.String> filteredProps)
propertyMap
- filteredProps
- public void putFilteredPropertyCollection(java.util.Collection<java.lang.String> properties, java.util.Set<java.lang.String> filteredProps)
properties
- filteredProps
- public java.util.Collection<java.io.Serializable> getCollection()
public java.util.Map<java.lang.String,java.io.Serializable> getPropertyMap()
public java.util.Map<java.lang.String,java.io.Serializable> getTreeMap()
public int compareTo(AOByteBuffer buffer)
compareTo
in interface java.lang.Comparable<AOByteBuffer>
public static void main(java.lang.String[] args)
public static AOByteBuffer putInt(AOByteBuffer buffer, int i)
public static AOByteBuffer putString(AOByteBuffer buffer, java.lang.String str)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |