   # Sets index to front of the buffer
   front: ->
     @_index = 0
-    return @
+    return this
 
   # Sets index to end of the buffer
   end: ->
     @_index = @length
-    return @
+    return this
 
   # Seeks given number of bytes
   # Note: Backwards seeking is supported
   seek: (bytes=1) ->
     @index += bytes
-    return @
+    return this
 
   # Retrieves number of available bytes
   get available: ->

    view = new Uint8Array(@length + bytes)
    view.set(@_raw, 0)
    @buffer = view.buffer
    return @

  # Clips this buffer
  clip: (begin = @_index, end = @length) ->


      @_view[method](@_index, value, order)
      @_index += bytes
      return this

  # Readers for bytes, shorts, integers, floats and doubles
  readByte: reader('getInt8', 1)
