Commit Graph
23 Commits
Author SHA1 Message Date
Johannes Weiss 62b4acaedf ByteBuffer.clear: Prevent copying bytes if allocation is necessary 2018-01-05 15:01:48 +00:00
Johannes Weiß 94e1af5452 compile warning-free on Swift 4.1 2017-12-18 15:37:57 +00:00
Norman Maurer 76482816e6 Prefix all ByteBuffer methods with get if these allow access to unitialized memory. 2017-12-15 12:24:09 +01:00
Cory Benfield f3e72c13f3 Add HTTP streaming compressor 2017-12-15 09:50:12 +00:00
Cory Benfield bcdef57481 Correctly track the writer index 2017-12-15 08:24:38 +00:00
Johannes Weiss 64a1c2feb8 Channel writes: unit tests & lots of fixes 2017-12-11 12:20:46 +00:00
Johannes Weiss 8a4a658bc7 fix large ByteBuffer allocations 2017-12-08 10:37:14 +00:00
Johannes Weiss 9b593d0f8d ByteBuffer documentation (final part 2) 2017-12-04 11:51:17 +00:00
Johannes Weiß e1f1cd6d4d ByteBuffer docs, part 1 2017-11-30 16:42:58 +00:00
Johannes Weiß a22fc02c51 ByteBuffer: fix a UInt underflow 2017-11-30 16:57:26 +00:00
Johannes Weiß b66d413a38 remove useless private method from StaticString extension 2017-11-17 13:33:20 +00:00
Johannes Weiss c18db56fc2 make >= 0 checks for index/length a precondition 2017-11-09 02:49:11 -08:00
Johannes Weiss 839a5050dd ByteBuffer: fast path for contiguous collections 2017-11-03 02:39:54 -07:00
Johannes Weiss e9c76088ac ByteBuffer: avoid potential overflows for reading functions 2017-10-24 13:24:47 +01:00
Johannes Weiss 0b265368a1 use the new Swift 4 String APIs for encoding/decoding Strings 2017-10-10 17:12:02 +01:00
Johannes Weiss de2cb8a038 ByteBuffer.set with Collection of UInt8 2017-09-29 15:41:32 +01:00
Norman Maurer 24ce812c31 Ensure swift-nio compiles on latest swift 4.0 snapshot 2017-08-08 13:25:57 +02:00
Johannes Weiß 0684750261 minor fixes 2017-08-08 15:48:56 +01:00
Norman Maurer 2cc5151b8c Add precondition check for invalid writer / read index movement in the public methods. 2017-07-19 09:57:06 +02:00
Norman Maurer c12620e813 Directly use malloc/free when allocate ByteBuffer and also use realloc when change the size of the _Storage 2017-07-05 18:13:55 +02:00
Johannes Weiss 2fa81c9df4 make ByteBuffer allocation non-throwing (no reason it threw) 2017-06-29 15:38:02 +01:00
Johannes Weiß c1f2718786 fix undefined behaviour when loading integers (possibly misaligned) 2017-06-22 11:45:52 +01:00
Johannes Weiß ba791a0ed5 new byte buffer 2017-06-12 17:42:07 +01:00