nl_tokens: Gets a buffer containing with the bytes ( BE ) representing the collection length for protocol v2 and below
pl_tokens: function getLengthBufferV2 ( value ) { if ( ! value ) { return buffers . int16Zero ; } const lengthBuffer = utils . allocBufferUnsafe ( 2 ) ; if ( typeof value === 'number' ) { lengthBuffer . writeUInt16BE ( value , 0 ) ; } else { lengthBuffer . writeUInt16BE ( <mask> . length , 0 ) ; } return lengthBuffer ; }