zhao
2021-07-09 0821715ebc11d3934d0594a1cc2c39686d808906
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Text;
 
namespace HH.WMS.Utils.NPOI.HSSF.Record
{
    /**
     * Common base class of {@link Record} and {@link RecordAggregate}
     * 
     * @author Josh Micich
     */
    public abstract class RecordBase
    {
        /**
         * called by the class that is responsible for writing this sucker.
         * Subclasses should implement this so that their data is passed back in a
         * byte array.
         * 
         * @param offset to begin writing at
         * @param data byte array containing instance data
         * @return number of bytes written
         */
        public abstract int Serialize(int offset, byte[] data);
 
        /**
         * gives the current serialized size of the record. Should include the sid
         * and reclength (4 bytes).
         */
        public abstract int RecordSize { get; }
 
        //Record CloneViaReserialise();
    }
}