2 Commits
Author SHA1 Message Date
Nicolas Bachschmidt 4d8b27e0e8 Add missing implementation of subscript(_ bounds:) to StaticString (#1947)
Motivation:

This is a backport of #1893 for SwiftNIO1.

Modifications:

Add an implementation of subscript(_ bounds:) to StaticString.

Result:

* StaticString can be sliced without crashing, though in O(n) time.
* The package should build with the July 8 2021 snapshot of Swift.
2021-09-02 14:56:39 +01:00
Johannes Weiss 927034f7de mark more Collections as ContiguousCollections (#586)
Motivation:

All the mutable variants and also some slices of clearly contiguous
collections weren't marked as ContiguousCollections but they should be.

Modifications:

- made UnsafeMutable[Raw]BufferPointer a ContiguousCollection
- made Slice<UnsafeRawBufferPointer> a ContiguousCollection

Result:

faster code
2018-08-23 17:18:51 +01:00