Class: TinyGLTF::Buffer

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c

Instance Attribute Summary

Attributes included from Base

#model

Instance Method Summary collapse

Methods included from Base

included, #inspect, #to_h, #to_json

Instance Method Details

#sizeObject

Returns the size of the buffer data in bytes.

#to_ptrObject

Returns a Fiddle::Pointer representing the start of the buffer data in memory. For performance, try to use this rather than #to_s.

#to_sObject

Returns a string containing the raw buffer data. For better performance, prefer #to_ptr where possible.

#uriObject

Returns the URI from which this data was retrieved, if available. Returns nil if a URI was not used.