You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+55-8Lines changed: 55 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,15 @@
2
2
3
3
[Lilliput](http://en.wikipedia.org/wiki/Lilliput_and_Blefuscu) is a native Swift framework for working with binary data.
4
4
5
-
## Design Decisions
5
+
## Design decisions
6
6
7
7
* Does not support streaming data, it only works with data that can fit in memory.
8
8
* Allows types to have multiple encodings/decodings, this means that a UInt32 could be easily represented as little endian, big endian, or some custom compressed encoding.
9
9
* Does not support the idea of "native" endianness, when working with data where endianess matters you must always be specific.
10
+
* Currently does not use the Foundation package so there are no APIs for integrating with it.
11
+
* Makes use of the [swift-system](https://github.com/apple/swift-system) package for reading/writing files.
10
12
11
-
## Basic Usage
13
+
## Basic usage
12
14
13
15
```swift
14
16
importLilliput
@@ -25,7 +27,7 @@ var reader = ByteSpanReader(buffer)
25
27
let value =try reader.read(UInt32.LittleEndian.self)
0 commit comments