src/bufferTools.js
/**
 * Remove count from inputBuffer and return both parts
 * @param {Buffer} inputBuffer
 * @param {number} count
 * @returns {IShiftedBuffer} shiftedBuffer
 */
Remove count from inputBuffer and return both parts
@param {Buffer} inputBuffer
@param {number} count
@returns {IShiftedBuffer} shiftedBuffer
Remove count from inputBuffer and return both parts @param { Buffer } inputBuffer @param { number } count @returns { IShiftedBuffer } shiftedBuffer
function shiftBuffer(inputBuffer, count) {
  const value = Buffer.from(inputBuffer.slice(0, count));
  const remainder = Buffer.from(inputBuffer.slice(count));
  return { value, remainder };
}
function shiftBuffer ( inputBuffer , count ) { const value = Buffer . from ( inputBuffer . slice ( 0 , count ) ) ; const remainder = Buffer . from ( inputBuffer . slice ( count ) ) ; return { value , remainder } ; }
Remove count from inputBuffer and return both parts
 @param {Buffer} inputBuffer
 @param {number} count
 @returns {IShiftedBuffer} shiftedBuffer
Remove count from inputBuffer and return both parts @param { Buffer } inputBuffer @param { number } count @returns { IShiftedBuffer } shiftedBuffer