convex.core.data.Encoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.data;
import convex.core.exceptions.BadFormatException;
import convex.core.store.AStore;
/**
* Encoder for stores
*/
public class Encoder {
public static final int FORMAT_V1=1;
protected AStore store;
public Blob encode(ACell a) {
return Format.encodedBlob(a);
}
public ACell decode (Blob encoding) throws BadFormatException {
return Format.read(encoding);
}
}