models/blob.js
function SKBlob (data) {
  var self = this
  if (!(self instanceof SKBlob)) return new SKBlob(data)

  if (!(data instanceof Buffer)) {
    data = new Buffer(data)
  }

  self._data = data
  self._type = fileType(data)

  self._isImage = BufferUtils.isImage(data)
  self._isMPEG4 = BufferUtils.isMPEG4(data)
  self._isVideo = self._isMPEG4
  self._isMedia = BufferUtils.isMedia(data)

  // TODO
  self._overlay = null
}
function SKBlob (data) {
  var self = this
  if (!(self instanceof SKBlob)) return new SKBlob(data)

  if (!(data instanceof Buffer)) {
    data = new Buffer(data)
  }

  self._data = data
  self._type = fileType(data)

  self._isImage = BufferUtils.isImage(data)
  self._isMPEG4 = BufferUtils.isMPEG4(data)
  self._isVideo = self._isMPEG4
  self._isMedia = BufferUtils.isMedia(data)

  // TODO
  self._overlay = null
}
function SKBlob ( data ) { var self = this if ( ! ( self instanceof SKBlob ) ) return new SKBlob ( data ) if ( ! ( data instanceof Buffer ) ) { data = new Buffer ( data ) } self . _data = data self . _type = fileType ( data ) self . _isImage = BufferUtils . isImage ( data ) self . _isMPEG4 = BufferUtils . isMPEG4 ( data ) self . _isVideo = self . _isMPEG4 self . _isMedia = BufferUtils . isMedia ( data ) // TODO self . _overlay = null }
Snapchat Blob wrapper

@class
@param {Buffer} data
Snapchat Blob wrapper