Class: TinyGLTF::Buffer
- Inherits:
-
Object
- Object
- TinyGLTF::Buffer
- Includes:
- Base
- Defined in:
- lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#size ⇒ Object
Returns the size of the buffer data in bytes.
-
#to_ptr ⇒ Object
Returns a Fiddle::Pointer representing the start of the buffer data in memory.
-
#to_s ⇒ Object
Returns a string containing the raw buffer data.
-
#uri ⇒ Object
Returns the URI from which this data was retrieved, if available.
Methods included from Base
included, #inspect, #to_h, #to_json
Instance Method Details
#size ⇒ Object
Returns the size of the buffer data in bytes.
#to_ptr ⇒ Object
Returns a Fiddle::Pointer representing the start of the buffer data in memory. For performance, try to use this rather than #to_s.
#to_s ⇒ Object
Returns a string containing the raw buffer data. For better performance, prefer #to_ptr where possible.
#uri ⇒ Object
Returns the URI from which this data was retrieved, if available. Returns
nil
if a URI was not used.