LinearCodingStack

open class LinearCodingStack : CodingStorage

A CodingStorage that stores it’s metas on a stack.

This coding stack requires a strictly sequential (de|en)coding process.

initalization

  • Inits a new empty LinearCodingStack

    Declaration

    Swift

    public init(root: [CodingKey] = [])

CodingStorage implementation

  • Declaration

    Swift

    open subscript(codingPath: [CodingKey]) -> Meta { get set }
  • Declaration

    Swift

    open func storesMeta(at codingPath: [CodingKey]) -> Bool
  • Declaration

    Swift

    open func store(meta: Meta, at codingPath: [CodingKey]) throws
  • Declaration

    Swift

    open func storePlaceholder(at codingPath: [CodingKey]) throws
  • Declaration

    Swift

    open func remove(at codingPath: [CodingKey]) throws -> Meta?
  • Declaration

    Swift

    open func fork(at codingPath: [CodingKey]) -> CodingStorage