Buffer:getStride
EditReturns the distance between each item in the Buffer, in bytes, or nil if the Buffer was not created with a format.
stride = Buffer:getStride()Arguments
None
Returns
| Name | Type | Description |
| stride | number | The stride of the Buffer, in bytes. |
Notes
When a Buffer is created, the stride can be set explicitly, otherwise it will be automatically computed based on the fields in the Buffer.
Strides can not be zero, and can not be smaller than the size of a single item.