Package org.epics.pvdata.pv
Interface SerializableControl
-
public interface SerializableControlFlush control interface.- Author:
- mse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalignBuffer(int alignment)Align buffer.voidcachedSerialize(Field field, ByteBuffer buffer)Serialize Field instance via cache.voidensureBuffer(int size)Ensures that the specified number of bytes can be serialized, flushing if necessary.voidflushSerializeBuffer()Request to flush serialization buffer.
-
-
-
Method Detail
-
flushSerializeBuffer
void flushSerializeBuffer()
Request to flush serialization buffer. This call will block until buffer is not flushed. To be called when buffer is out of space.
-
ensureBuffer
void ensureBuffer(int size)
Ensures that the specified number of bytes can be serialized, flushing if necessary.- Parameters:
size- the number of bytes
-
alignBuffer
void alignBuffer(int alignment)
Align buffer. Note that this takes care only current buffer alignment. If streaming protocol is used, care must be taken that entire stream is aligned.- Parameters:
alignment- size in bytes, must be power of two
-
cachedSerialize
void cachedSerialize(Field field, ByteBuffer buffer)
Serialize Field instance via cache.- Parameters:
field- Field instance to be serializedbuffer- the buffer to be serialized to
-
-