Package org.capnproto

Class ReaderOptions


  • public final class ReaderOptions
    extends Object
    • Field Detail

      • traversalLimitInWords

        public final long traversalLimitInWords
        How many words are allowed to be read before an exception is thrown, to protect against denial of service attacks. -1 means "no limit".
      • nestingLimit

        public final int nestingLimit
        How many pointer indirections deep a message may be before an exception is thrown.
      • DEFAULT_READER_OPTIONS

        public static final ReaderOptions DEFAULT_READER_OPTIONS
    • Constructor Detail

      • ReaderOptions

        public ReaderOptions​(long traversalLimitInWords,
                             int nestingLimit)