write(b) {
        const buf = new util_1.default.Reader(b);
        // address_indexes ([]uint16)
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            const type = '[]uint16'.slice(2);
            this.address_indexes = [...Array(size)].map(() => bytes_1.read(buf, type));
        }
        // reject_address_index (uint16)
        {
            this.reject_address_index = bytes_1.read(buf, 'uint16');
        }
        // rejection_code (uint8)
        {
            this.rejection_code = bytes_1.read(buf, 'uint8');
        }
        // message (string)
        {
            this.message = bytes_1.ReadVarChar(buf, 16);
        }
        // timestamp (Timestamp)
        {
            this.timestamp = new protocol_types_1.Timestamp();
            this.timestamp.Write(buf);
        }
        return b.length - buf.length;
    }
// write populates the fields in Rejection from the byte slice
write populates the fields in Rejection from the byte slice
write populates the fields in Rejection from the byte slice
write(b) {
        const buf = new util_1.default.Reader(b);
        {
            const size = bytes_1.ReadVariableSize(buf, 8, 8);
            const type = '[]uint16'.slice(2);
            this.address_indexes = [...Array(size)].map(() => bytes_1.read(buf, type));
        }
        {
            this.reject_address_index = bytes_1.read(buf, 'uint16');
        }
        {
            this.rejection_code = bytes_1.read(buf, 'uint8');
        }
        {
            this.message = bytes_1.ReadVarChar(buf, 16);
        }
        {
            this.timestamp = new protocol_types_1.Timestamp();
            this.timestamp.Write(buf);
        }
        return b.length - buf.length;
    }
write ( b ) { const buf = new util_1 . default . Reader ( b ) ; { const size = bytes_1 . ReadVariableSize ( buf , 8 , 8 ) ; const type = '[]uint16' . slice ( 2 ) ; this . address_indexes = [ ... Array ( size ) ] . map ( ( ) => bytes_1 . read ( buf , type ) ) ; } { this . reject_address_index = bytes_1 . read ( buf , 'uint16' ) ; } { this . rejection_code = bytes_1 . read ( buf , 'uint8' ) ; } { this . message = bytes_1 . ReadVarChar ( buf , 16 ) ; } { this . timestamp = new protocol_types_1 . Timestamp ( ) ; this . timestamp . Write ( buf ) ; } return b . length - buf . length ; }
write populates the fields in Rejection from the byte slice
write populates the fields in Rejection from the byte slice
// address_indexes ([]uint16) // reject_address_index (uint16) // rejection_code (uint8) // message (string) // timestamp (Timestamp)