public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize(offset, getRecordId(), this);LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );System.arraycopy( field_pictureData, 0, data, offset + 4, field_pictureData.length );listener.afterRecordSerialize(offset + 4 + field_pictureData.length, getRecordId(), field_pictureData.length + 4, this);return field_pictureData.length + 4;}
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);Array.Copy(field_pictureData, 0, data, offset + 4, field_pictureData.Length);listener.AfterRecordSerialize(offset + 4 + field_pictureData.Length, RecordId, field_pictureData.Length + 4, this);return field_pictureData.Length + 4;}