robotdotnet / WPILib

DotNet implementation of WPILib for FIRST Robotics Competition (FRC)
27 stars 8 forks source link

Make all HAL parameters and returns blittable. #61

Closed ThadHouse closed 8 years ago

ThadHouse commented 8 years ago

The way strings are marshalled currently cause some memory leaks on the simulator. In addition, when we move to the WPILib DS Simulator, it will break, since the code currently automatically marshals strings. The WPILibs are UTF-8. On mono it marshalls to UTF-8, however windows will do UTF-16. So we need to manually marshall this. It will also fix some other bugs as well.

ThadHouse commented 8 years ago

We should actually just make all HAL types blittable. pretty much all of them currently are, but we should do the rest of them.