Uses of Record Class
org.sofabuffers.sofab.Bound

  • Uses of Bound in org.sofabuffers.sofab

    Fields in org.sofabuffers.sofab declared as Bound
    Modifier and Type
    Field
    Description
    static final Bound
    The schema bounds this string or blob and the caller has already enforced its maxlen at the same header, as Sofab.invalid(String) (MESSAGE_SPEC §7.1), so §6.2.1 forbids a receiver cap on it and there is no second number for PayloadAcc to compare.
    Methods in org.sofabuffers.sofab that return Bound
    Modifier and Type
    Method
    Description
    static Bound
    Bound.receiver(long max)
    The receiver cap this deployment configured for a field the schema leaves unbounded — one of the three max_dyn_* limits of §6.2.1.
    static Bound
    Bound.schema(long n)
    The bound the schema declares for this field — an array's count, or a string/blob's maxlen — compared by the call it is handed to.
    Methods in org.sofabuffers.sofab with parameters of type Bound
    Modifier and Type
    Method
    Description
    byte[]
    PayloadAcc.blob(int total, int offset, byte[] data, int chunkOffset, int chunkLength, Bound bound)
    Offer a chunk of a blob payload; returns the payload once the last chunk has arrived, null while more are expected.
    static void
    PayloadAcc.checkBlobLength(int total, Bound bound)
    Refuse an announced blob length the receiver's cap does not admit.
    static void
    Seq.checkIndex(int id, Bound bound)
    The element-index rule, written once for all nine reservations — and published for the one site that has none to ride.
    static void
    PayloadAcc.checkStringLength(int total, Bound bound)
    Refuse an announced string length the receiver's cap does not admit — the §6.2.1 comparison on its own, for a caller to make at the length word.
    static <T> void
    Seq.placeElem(List<T> out, int id, T def, T value, Bound bound)
    Place a leaf element — a wrapper array's string or blob — at the index its wire id names, growing the list and filling the gaps that omitted interior elements left (MESSAGE_SPEC §5.1, §2).
    static <T> void
    Seq.reserveElem(List<T> out, int id, Supplier<T> make, Bound bound)
    Reserve a framed element — the slot a wrapper array's struct, union or nested-array element is routed into: bound the index, then grow the list to id + 1, giving each new slot its own element from make (MESSAGE_SPEC §5.1, §2).
    static <T> void
    Seq.reserveRow(List<List<T>> rows, int id, Bound bound)
    Reserve the row at index id of a matrix — an array whose elements are themselves arrays — as an empty row, growing the outer list with empty rows so that a gap in the ids decodes as an empty row instead of shifting every later row down by one.
    static byte[]
    Seq.reserveRowBytes(List<byte[]> rows, int id, int n, Bound bound)
    Seq.reserveRow(List, int, Bound) for a primitive row: the same id-keyed placement and the same gap fill with the empty row, but the new row is handed back so the caller can fill it by index instead of reading it out of the list once per element.
    static double[]
    Seq.reserveRowDoubles(List<double[]> rows, int id, int n, Bound bound)
    static float[]
    Seq.reserveRowFloats(List<float[]> rows, int id, int n, Bound bound)
    static int[]
    Seq.reserveRowInts(List<int[]> rows, int id, int n, Bound bound)
    static long[]
    Seq.reserveRowLongs(List<long[]> rows, int id, int n, Bound bound)
    static short[]
    Seq.reserveRowShorts(List<short[]> rows, int id, int n, Bound bound)
    PayloadAcc.string(int total, int offset, byte[] data, int chunkOffset, int chunkLength, Bound bound)
    Offer a chunk of a string payload; returns the decoded string once the last chunk has arrived, null while more are expected.