mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
30 lines
558 B
Python
30 lines
558 B
Python
|
##
|
||
|
##
|
||
|
|
||
|
|
||
|
#
|
||
|
# Adapter for java.nio.FloatBuffer
|
||
|
#
|
||
|
#
|
||
|
# SOFTWARE HISTORY
|
||
|
#
|
||
|
# Date Ticket# Engineer Description
|
||
|
# ------------ ---------- ----------- --------------------------
|
||
|
# 08/01/11 dgilling Initial Creation.
|
||
|
#
|
||
|
#
|
||
|
#
|
||
|
|
||
|
ClassAdapter = ['java.nio.FloatBuffer', 'java.nio.HeapFloatBuffer']
|
||
|
|
||
|
|
||
|
def serialize(context, set):
|
||
|
raise NotImplementedError("Serialization of FloatBuffers is not supported.")
|
||
|
|
||
|
def deserialize(context):
|
||
|
floatBuf = context.readFloatArray()
|
||
|
return floatBuf
|
||
|
|
||
|
|
||
|
|