summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-11-28 18:34:17 +0100
committerJon Bratseth <bratseth@yahoo-inc.com>2016-11-28 18:34:17 +0100
commit67fa513bc95e37a1e3c45715efa6d79e26a5e71c (patch)
treeb479f07d70cc31ccdca4a078295033e099e26243 /vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java
parentea771fd3d188a370d44884646924fc39f21d55c5 (diff)
Give tensors a type
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java b/vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java
index 652874082cf..f3adf63739a 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/serialization/BinaryFormat.java
@@ -17,10 +17,11 @@ interface BinaryFormat {
/**
* Serialize the given tensor into binary format.
*/
- public void encode(GrowableByteBuffer buffer, Tensor tensor);
+ void encode(GrowableByteBuffer buffer, Tensor tensor);
/**
* Deserialize the given binary data into a Tensor object.
*/
- public Tensor decode(GrowableByteBuffer buffer);
+ Tensor decode(GrowableByteBuffer buffer);
+
}