 
   # Generic reader
   reader = (method, bytes) ->
-    return (order=@_order) ->
+    return (order = @_order) ->
       if bytes > @available
         throw new Error('Cannot read ' + bytes + ' byte(s), ' + @available + ' available')
 

    return @

  # Slices this buffer
  slice: (begin=0, end=@length) ->
    slice = new self(@_buffer.slice(begin, end), @order)
    return slice


  writeDouble: writer('setFloat64', 8)

  # Reads sequence of given number of bytes (defaults to number of bytes available)
  read: (bytes = @available) ->
    if bytes > @available
      throw new Error('Cannot read ' + bytes + ' byte(s), ' + @available + ' available')

