Code example for DataOutput

Methods: write, writeInt, writeShort

0
    object = DNATools.link(DNATools.ptr(buffer), bObject.class); // get ptr
    prevCos = DNATools.ptr(buffer); // get ptr
    buffer.get(defgrp_name);
  } 
  public void write(DataOutput buffer) throws IOException {
    super.write(buffer);
    buffer.writeShort(deformflag);
    buffer.writeShort(multi);
    buffer.writeInt(pad2);
    buffer.writeInt(object!=null?object.hashCode():0);
    buffer.writeInt(prevCos!=null?prevCos.hashCode():0);
    buffer.write(defgrp_name);
  } 
  public Object setmyarray(Object array) {
    myarray = (ArmatureModifierData[])array;
    return this;
  } 
  public Object getmyarray() {
    return myarray;
  } 
  public String toString() {