Bytes returns byte array of the Value data, including any additional alignment -- can be written to directly. Be mindful of potential padding and alignment issues relative to go-based storage. Set Mod flag when changes have been made.
()
| 149 | // go-based storage. |
| 150 | // Set Mod flag when changes have been made. |
| 151 | func (vl *Value) Bytes() []byte { |
| 152 | return (*[ByteCopyMemoryLimit]byte)(vl.MemPtr)[:vl.AllocSize] |
| 153 | } |
| 154 | |
| 155 | // Floats32 returns math32.ArrayF32 of the Value data -- can be written to directly. |
| 156 | // Only recommended for Vertex data. Otherwise, be mindful of potential padding |
no outgoing calls
no test coverage detected