Interface FieldReadable<T>

    • Method Detail

      • readFrom

        T readFrom​(ProtoStreamReader reader,
                   int index,
                   org.infinispan.protostream.descriptors.WireType type,
                   T current)
            throws IOException
        Reads a single field from the specified reader.
        Parameters:
        reader - a reader
        index - the zero-based index, relative to this field set, of the field to be read
        type - the wire type of the field to be read
        current - the current value
        Returns:
        the read value
        Throws:
        IOException - if a field could not be read
      • nextIndex

        default int nextIndex​(int startIndex)
        Returns the index that should follow this field set.
        Parameters:
        startIndex - the starting index of this field set
        Returns:
        the next index
      • getFields

        int getFields()
        Returns the number of fields in this field set
        Returns:
        a number of fields