Serialize() {
        const buf = new util_1.default.Writer();
        // ContractIndex (uint16)
        {
            bytes_1.write(buf, this.contract_index, 'uint16');
        }
        // AssetType (string)
        {
            bytes_1.WriteFixedChar(buf, this.asset_type, 3);
        }
        // AssetCode (AssetCode)
        {
            buf.write(this.asset_code.Serialize());
        }
        // Settlements ([]QuantityIndex)
        {
            if (!this.settlements)
                this.settlements = [];
            bytes_1.WriteVariableSize(buf, this.settlements.length, 8, 8);
            this.settlements.forEach(value => {
                buf.write(value.Serialize());
            });
        }
        return buf.buf;
    }
// Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
Serialize() {
        const buf = new util_1.default.Writer();
        {
            bytes_1.write(buf, this.contract_index, 'uint16');
        }
        {
            bytes_1.WriteFixedChar(buf, this.asset_type, 3);
        }
        {
            buf.write(this.asset_code.Serialize());
        }
        {
            if (!this.settlements)
                this.settlements = [];
            bytes_1.WriteVariableSize(buf, this.settlements.length, 8, 8);
            this.settlements.forEach(value => {
                buf.write(value.Serialize());
            });
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . write ( buf , this . contract_index , 'uint16' ) ; } { bytes_1 . WriteFixedChar ( buf , this . asset_type , 3 ) ; } { buf . write ( this . asset_code . Serialize ( ) ) ; } { if ( ! this . settlements ) this . settlements = [ ] ; bytes_1 . WriteVariableSize ( buf , this . settlements . length , 8 , 8 ) ; this . settlements . forEach ( value => { buf . write ( value . Serialize ( ) ) ; } ) ; } return buf . buf ; }
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
// ContractIndex (uint16) // AssetType (string) // AssetCode (AssetCode) // Settlements ([]QuantityIndex)