python-awips/dynamicserialize/adapters/ByteBufferAdapter.py

22 lines
540 B
Python
Raw Normal View History

2018-09-05 15:52:38 -06:00
#
# Adapter for java.nio.ByteBuffer
#
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 08/03/11 dgilling Initial Creation.
#
ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer']
def serialize(context, bufferset):
2018-09-05 15:52:38 -06:00
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
2018-10-14 17:37:08 -06:00
2018-09-05 15:52:38 -06:00
def deserialize(context):
byteBuf = context.readBinary()
return byteBuf