# EncoderMembers

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature">(abstract) </span></span>EncoderMembers<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Declares the privileged instance members.
Due to historical reasons, it was always separate from Encoder.
It's likely because previously Encoder was exposed in the API (it no longer is)
and such separation allowed to keep members of this class private (invisible in the public API docs).
Currently it's kept separate to easier code reading / editing.
This class focuses on encoding/decoding methods for individual types,
while Encoder &quot;public&quot; (only for the driver) part of the API.
You can only use this class through Encoder, and do not instantiate it directly.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="EncoderMembers"><span class="type-signature">(abstract) </span>new EncoderMembers<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/encoder.ts#L133" target="_blank" rel="noopener">encoder.ts, line 133</a></p></div>




















    
    

    

    

    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h4 class="name" id="decodeCollectionLength"><span class="type-signature"></span>decodeCollectionLength<span class="type-signature"></span></h4>




<div class="description">
    <p>Selected from the protocol version by setProtocolVersion.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/encoder.ts#L151" target="_blank" rel="noopener">encoder.ts, line 151</a></p></div>






        
            
<h4 class="name" id="decodeLong"><span class="type-signature"></span>decodeLong<span class="type-signature"></span></h4>




<div class="description">
    <p>Selected from the encoding options, once, in the constructor.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/encoder.ts#L138" target="_blank" rel="noopener">encoder.ts, line 138</a></p></div>






        
            
<h4 class="name" id="handleBuffer"><span class="type-signature"></span>handleBuffer<span class="type-signature"></span></h4>




<div class="description">
    <p>Selected from the encoding options by the <a href="Encoder.html">Encoder</a> constructor.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/encoder.ts#L156" target="_blank" rel="noopener">encoder.ts, line 156</a></p></div>






        
    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="encode"><span class="type-signature"></span>encode<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Implemented by <a href="Encoder.html">Encoder</a>, which is the only way to reach this class.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/encoder.ts#L159" target="_blank" rel="noopener">encoder.ts, line 159</a></p></div></div>
