Bytes returns the size of the array in bytes
()
| 20 | |
| 21 | // Bytes returns the size of the array in bytes |
| 22 | func (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 |
| 28 | func (a *ArrayF32) Size() int { |
no outgoing calls
no test coverage detected