this.segment.buffer.putFloat(this.ptr + index * 4, value);
}
public void setDoubleElement(int index, double value) {
this.segment.buffer.putDouble(this.ptr + index * 8, value);
}
<BUG>public final StructBuilder getStructElement(int index) {
int indexBit = index * this.step;</BUG>
int structData = this.ptr + indexBit / 8 ;
int structPointers = (structData + (this.structDataSize / 8)) / 8;
<BUG>return new StructBuilder(this.segment,
</BUG>
structData,

this.segment.buffer.putFloat(this.ptr + index * 4, value);
}
public void setDoubleElement(int index, double value) {
this.segment.buffer.putDouble(this.ptr + index * 8, value);
}
public final <T> T getStructElement(FromStructBuilder<T> factory, int index) {
int indexBit = index * this.step;
int structData = this.ptr + indexBit / 8 ;
int structPointers = (structData + (this.structDataSize / 8)) / 8;
return factory.fromStructBuilder(this.segment,
structData,
