frostfs-sdk-java/client/src/main/java/info/frostfs/sdk/constants/RuleConst.java
Ori Bruk 1f17f5a794
All checks were successful
DCO / DCO (pull_request) Successful in 26s
Verify code phase / Verify code (pull_request) Successful in 1m28s
[#41] Add APE rule serializer
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
2025-02-13 20:25:29 +03:00

27 lines
839 B
Java

package info.frostfs.sdk.constants;
public class RuleConst {
public static final byte VERSION = 0;
public static final int BYTE_SIZE = 1;
public static final int U_INT_8_SIZE = BYTE_SIZE;
public static final int BOOL_SIZE = BYTE_SIZE;
public static final long NULL_SLICE = -1L;
public static final int NULL_SLICE_SIZE = 1;
public static final byte BYTE_TRUE = 1;
public static final byte BYTE_FALSE = 0;
// maxSliceLen taken from
// https://github.com/neo-project/neo/blob/38218bbee5bbe8b33cd8f9453465a19381c9a547/src/Neo/IO/Helper.cs#L77
public static final int MAX_SLICE_LENGTH = 0x1000000;
public static final int CHAIN_MARSHAL_VERSION = 0;
public static final long OFFSET128 = 0x80;
public static final long UNSIGNED_SERIALIZE_SIZE = 7;
private RuleConst() {
}
}