MCPcopy
hub / github.com/g3n/engine / Bytes

Method Bytes

math32/array.go:22–25  ·  view source on GitHub ↗

Bytes returns the size of the array in bytes

()

Source from the content-addressed store, hash-verified

20
21// Bytes returns the size of the array in bytes
22func (a *ArrayF32) Bytes() int {
23
24 return len(*a) * int(unsafe.Sizeof(float32(0)))
25}
26
27// Size returns the number of float32 elements in the array
28func (a *ArrayF32) Size() int {

Callers 7

mainFunction · 0.45
generateFunction · 0.45
ItemsMethod · 0.45
RenderSetupMethod · 0.45
bindataReadFunction · 0.45
TransferMethod · 0.45
genFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected