コード例 #1
0
        public override int GetBodySize()
        {
            int size = 0;

            size += sizeof(int);
            size += IsVariableLength ? ShockwaveWriter.GetVarIntSize(Length) : sizeof(int);
            return(size);
        }
コード例 #2
0
        public override int GetBodySize()
        {
            int size = 0;

            size += ShockwaveWriter.GetVarIntSize(Id);
            size += ShockwaveWriter.GetVarIntSize(Offset);
            size += ShockwaveWriter.GetVarIntSize(Length);
            size += ShockwaveWriter.GetVarIntSize(DecompressedLength);
            size += ShockwaveWriter.GetVarIntSize(CompressionType);
            size += sizeof(int);
            return(size);
        }