code: function _toBuffer(buffer) {
          var _buffer, nums;
  
          if (Buffer.isBuffer(buffer)) {
              _buffer = new Buffer(buffer.length);
              buffer.copy(_buffer);
          }
          else if (Array.isArray(buffer)) {
              _buffer = new Buffer(buffer);
          }
          else if (typeof buffer === 'string') {
              nums = buffer.replace(/^0x/i, '').match(/.{1,2}(?=(..)+(?!.))|..?$/g);
              _buffer = new Buffer(nums.length);
  
              _buffer.fill(0);
  
              for (var i = nums.length - 1; i >= 0; i--) {
                  _buffer.writeUInt8(parseInt(nums[i], 16), i);
              }
          }
  
          return _buffer;
      }
docs: /*
  Checks type of data and perform conversion if necessary