Method: ByteBuffer#free

Defined in:
lib/bytebuffer.rb

#freeObject Also known as: drop, destroy

Note:

This function will invoke the drop() macro in rust, passing in the pointer for the ByteBuffer. After the call is made, the pointer is set to ‘nil`.

Frees the memory allocated for this ByteBuffer.



98
99
100
101
# File 'lib/bytebuffer.rb', line 98

def free
  ByteBufferExtension.drop(@ptr)
  @ptr = nil # :gottem:
end