edu.wpi.first.wpilibj.communication
Class FRCControl.CachedNativeBuffer
java.lang.Object
edu.wpi.first.wpilibj.communication.FRCControl.CachedNativeBuffer
- Enclosing class:
- FRCControl
public static class FRCControl.CachedNativeBuffer
- extends Object
A simple 1-element cache that keeps a pointer to native memory around.
Works best if repeatedly asked for buffers of same size.
WARNING: It's expected that the users of this cache are synchronized
FRCControl.CachedNativeBuffer
public FRCControl.CachedNativeBuffer()
getBufferSized
public Pointer getBufferSized(int size)
free
public void free()
"For updated information see the Java FRC site"