static WriteAuthFlags(permissions) {
        const stream = new BitWriter();
        permissions.forEach(permission => {
            // Permitted
            stream.write([permission.permitted]);
            // AdministrationProposal
            stream.write([permission.administration_proposal]);
            // HolderProposal
            stream.write([permission.holder_proposal]);
            // Voting Systems
            if (permission.administration_proposal || permission.holder_proposal) {
                stream.write(permission.voting_systems_allowed);
            }
        });
        return stream.flush().buf;
    }
// WriteAuthFlags writes an array of permission structs into raw auth flag data.
WriteAuthFlags writes an array of permission structs into raw auth flag data.
WriteAuthFlags writes an array of permission structs into raw auth flag data .
static WriteAuthFlags(permissions) {
        const stream = new BitWriter();
        permissions.forEach(permission => {
            stream.write([permission.permitted]);
            stream.write([permission.administration_proposal]);
            stream.write([permission.holder_proposal]);
            if (permission.administration_proposal || permission.holder_proposal) {
                stream.write(permission.voting_systems_allowed);
            }
        });
        return stream.flush().buf;
    }
static WriteAuthFlags ( permissions ) { const stream = new BitWriter ( ) ; permissions . forEach ( permission => { stream . write ( [ permission . permitted ] ) ; stream . write ( [ permission . administration_proposal ] ) ; stream . write ( [ permission . holder_proposal ] ) ; if ( permission . administration_proposal || permission . holder_proposal ) { stream . write ( permission . voting_systems_allowed ) ; } } ) ; return stream . flush ( ) . buf ; }
WriteAuthFlags writes an array of permission structs into raw auth flag data.
WriteAuthFlags writes an array of permission structs into raw auth flag data .
// Permitted // AdministrationProposal // HolderProposal // Voting Systems