public override int Serialize(int offset, byte[] data) { ILittleEndianOutput leo = new LittleEndianByteArrayOutputStream(data, offset); ContinuableRecordOutput out1 = new ContinuableRecordOutput(leo, this.Sid); Serialize(out1); out1.Terminate(); return(out1.TotalSize); }
/** * Serializes this record's content to the supplied data output.<br/> * The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so * only BIFF data should be written by this method. Simple data types can be written with the * standard {@link LittleEndianOutput} methods. Methods from {@link ContinuableRecordOutput} * can be used to Serialize strings (with {@link ContinueRecord}s being written as required). * If necessary, implementors can explicitly start {@link ContinueRecord}s (regardless of the * amount of remaining space). * * @param out a data output stream */ protected abstract void Serialize(ContinuableRecordOutput out1);