Serialize() {
        const buf = new util_1.default.Writer();
        // Index (uint16)
        {
            bytes_1.write(buf, this.index, 'uint16');
        }
        // Quantity (uint64)
        {
            bytes_1.write(buf, this.quantity, 'uint64');
        }
        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.index, 'uint16');
        }
        {
            bytes_1.write(buf, this.quantity, 'uint64');
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . write ( buf , this . index , 'uint16' ) ; } { bytes_1 . write ( buf , this . quantity , 'uint64' ) ; } return buf . buf ; }
Serialize returns the byte representation of the message.
Serialize returns the byte representation of the message .
// Index (uint16) // Quantity (uint64)