1
package opencog.spacetime.io.out.u3d.u3dencoding;
3
public class DataBlock {
19
public long getDataSize() {
23
public void setDataSize(long value) {
24
this.dataSize = value;
25
//allocate data buffer for block.
26
//the data is generally aligned to byte values
27
//but array is 4 bytes values . . .
28
if ((this.dataSize & 0x3) == 0)
29
this.data = new long[(int)value >> 2];
31
this.data = new long[((int)value >> 2) + 1];
34
public long[] getData() {
38
public void setData(long[] value) {
42
public long getMetaDataSize() {
43
return this.metaDataSize;
46
public void setMetaDataSize(long value) {
47
this.metaDataSize = value;
48
//allocate data buffer for block.
49
//the data is generally aligned to byte values
50
//but array is 4 bytes values . . .
51
if ((this.metaDataSize & 0x3) == 0)
52
this.metaData = new long[(int)value >> 2];
54
this.metaData = new long[((int)value >> 2) + 1];
57
public long[] getMetaData() {
61
public void setMetaData(long[] value) {
62
if (value.length == this.metaData.length) {
63
System.arraycopy(value, 0, this.metaData, 0, value.length);
67
public long getBlockType() {
68
return this.blockType;
71
public void setBlockType(long value) {
72
this.blockType = value;
75
public long getPriority() {
79
public void setPriority(long value) {
80
this.priority = value;