public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() );          pos += 2;LittleEndian.putShort( data, pos, getRecordId() );         pos += 2;LittleEndian.putInt( data, pos, getRecordSize()-8 );       pos += 4;LittleEndian.putInt( data, pos, field_1_dx1 );             pos += 4;LittleEndian.putInt( data, pos, field_2_dy1 );             pos += 4;LittleEndian.putInt( data, pos, field_3_dx2 );             pos += 4;LittleEndian.putInt( data, pos, field_4_dy2 );             pos += 4;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;LittleEndian.PutInt(data, pos, RecordSize - 8); pos += 4;LittleEndian.PutInt(data, pos, field_1_dx1); pos += 4;LittleEndian.PutInt(data, pos, field_2_dy1); pos += 4;LittleEndian.PutInt(data, pos, field_3_dx2); pos += 4;LittleEndian.PutInt(data, pos, field_4_dy2); pos += 4;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}