public ByteBuffer createBuffer(){
  ByteBuffer buffer=createByteBuffer();
  for (  Field field : fields) {
    field.write(buffer);
  }
  buffer.flip();
  return buffer;
}

public ByteBuffer createBuffer ( ) { ByteBuffer buffer = createByteBuffer ( ) ; for ( Field field : fields ) { field . write ( buffer ) ; } buffer . flip ( ) ; return buffer ; }
initializes an empty bytebuffer sized for the fields in this workarea . used to create a properly sized work area two buffer .
