All Downloads are FREE. Search and download functionalities are using the official Maven repository.

convex.core.data.Encoder Maven / Gradle / Ivy

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy