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));
        }
        // message_type (uint16)
        {
            this.message_type = bytes_1.read(buf, 'uint16');
        }
        // message_payload ([]byte)
        {
            this.message_payload = bytes_1.ReadVarBin(buf, 32);
        }
        return b.length - buf.length;
    }
// write populates the fields in Message from the byte slice
write populates the fields in Message from the byte slice
write populates the fields in Message 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.message_type = bytes_1.read(buf, 'uint16');
        }
        {
            this.message_payload = bytes_1.ReadVarBin(buf, 32);
        }
        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 . message_type = bytes_1 . read ( buf , 'uint16' ) ; } { this . message_payload = bytes_1 . ReadVarBin ( buf , 32 ) ; } return b . length - buf . length ; }
write populates the fields in Message from the byte slice
write populates the fields in Message from the byte slice
// address_indexes ([]uint16) // message_type (uint16) // message_payload ([]byte)