mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
22 lines
540 B
Python
22 lines
540 B
Python
|
#
|
||
|
# 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):
|
||
|
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
|
||
|
|
||
|
|
||
|
def deserialize(context):
|
||
|
byteBuf = context.readBinary()
|
||
|
return byteBuf
|