com.moesol.bindings
Class NativeArrayOfStructs
java.lang.Object
com.moesol.bindings.NativeArrayOfStructs
- Direct Known Subclasses:
- GUID.Array, MSG.Array, NASTY_STRUCT.Array, NASTY_STRUCT.Array, NON_OLE_AUTO_STRUCT.Array, NON_OLE_AUTO_STRUCT.Array, POINT.Array, PROPPAGEINFO.Array, RECT.Array, SIZE.Array, tag_typeDefTest.Array, tag_typeDefTest.Array, TEST_FIELDS.Array, TEST_FIELDS.Array, TEST_NO_UUID_STRUCT.Array, TEST_NO_UUID_STRUCT.Array, TEST_STRUCT.Array, TEST_STRUCT.Array
public class NativeArrayOfStructs
- extends Object
Wrap native bytes that represent native arrays of structs.
This class avoids making copies of the underlying bytes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeArrayOfStructs
public NativeArrayOfStructs(ByteBuffer bb)
- Create a new native array of structs on bb.
getElementSlice
protected ByteBuffer getElementSlice(int index,
int sizeof)
- Gets a slice of the array. Modifying the returned slice
modifies the underlying structure as well.
- Parameters:
index
- zero based element index of slice startsizeof
- size in bytes of one element
- Returns:
- new slice for element
_getByteBuffer
public ByteBuffer _getByteBuffer()
Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.