src/encoder.js
function encodeAttachmentMessage(buffer, offset, message) {
    if (message == undefined)
        throw Error('Specify message');
    offset += encodeString(buffer, message, offset);
    return offset;
}
function encodeAttachmentMessage(buffer, offset, message) {
    if (message == undefined)
        throw Error('Specify message');
    offset += encodeString(buffer, message, offset);
    return offset;
}
function encodeAttachmentMessage ( buffer , offset , message ) { if ( message == undefined ) throw Error ( 'Specify message' ) ; offset += encodeString ( buffer , message , offset ) ; return offset ; }
Helper function to encode the attachment for a message.
@param {Buffer} buffer
@param {Number} offset
@param {string} message
@returns {Number} New offset
@throws {Error}
Helper function to encode the attachment for a message .