Class BufferWriter<S>
java.lang.Object
com.jozufozu.flywheel.backend.struct.BufferWriter<S>
- All Implemented Interfaces:
StructWriter<S>
- Direct Known Subclasses:
UnsafeBufferWriter
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBufferWriter(VecBuffer backingBuffer, StructType<S> vertexType) -
Method Summary
-
Field Details
-
backingBuffer
-
stride
protected final int stride
-
-
Constructor Details
-
BufferWriter
-
-
Method Details
-
write
Description copied from interface:StructWriterWrite the given struct to the backing array.- Specified by:
writein interfaceStructWriter<S>
-
advance
protected abstract void advance()Advances the write pointer forward by the stride of one vertex. This will always be called after a struct is written, implementors need not call it themselves.- See Also:
-
writeInternal
-
seek
public void seek(int pos) Description copied from interface:StructWriterSeek to the given position. The next write will occur there.- Specified by:
seekin interfaceStructWriter<S>
-