Skip to content

Instantly share code, notes, and snippets.

@oliverepper
Created February 21, 2020 17:21
Show Gist options
  • Select an option

  • Save oliverepper/b1450e1df42cf10c818bfd051ce574e5 to your computer and use it in GitHub Desktop.

Select an option

Save oliverepper/b1450e1df42cf10c818bfd051ce574e5 to your computer and use it in GitHub Desktop.
CodableFileBufferExample
struct MyCodable: Codable {
var id: Int
var key: String
}
let buffer = CodableFileBuffer<MyCodable>()
buffer.append(MyCodable(id: 1, key: "value_one"))
buffer.append(MyCodable(id: 2, key: "another_value"))
let myCodables = buffer.retrieve()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment