Commit Graph
1232 Commits
Author SHA1 Message Date
Tom Doron 788b684151 test generation should not include timestamp
motivation: keep changeset smaller

changes: remove timestamp from test generator template, regenerate tests with new template
2017-06-22 11:36:31 -07:00
Norman Maurer 069543c456 Add test case for outbound handler ordering 2017-06-22 20:27:48 +02:00
Johannes Weiß 1bdeee7594 regenerate Linux tests 2017-06-22 12:36:37 +01:00
Johannes Weiß c1f2718786 fix undefined behaviour when loading integers (possibly misaligned) 2017-06-22 11:45:52 +01:00
Norman Maurer 1c5e0b4f9d Fix error in ByteBuffer test 2017-06-21 20:35:24 +02:00
Tom Doron a6bae8b759 linux support
motivation: be able to build and test on linux

changes:
* add dockerfile to create docker image running all toold required for testing on linux
* add readme with instruction on how to use the docker setup
* add script to generate linux tests mapping
* add .swift_version file to explicitly call out the swift version needed to build the project
* adjust code that did not build on linux, mainly casting between Int32 and Int
2017-06-21 10:58:28 -07:00
Norman Maurer 28c61c43e4 Remove ByteBuffer.skipBytes(...) as its reduntant with moveWriterIndex(forwardBy(...) 2017-06-16 20:26:53 +02:00
Norman Maurer 88c7d34aa1 Fix compile error in EmbeddedChannelTest 2017-06-16 13:18:13 +01:00
Norman Maurer a7811b7b2d Add ByteBuffer.write(buffer) and set(buffer) 2017-06-14 19:19:29 +02:00
Johannes Weiß ba791a0ed5 new byte buffer 2017-06-12 17:42:07 +01:00
Norman Maurer 58d0883b2d Fork Future-Swift and adjust it to ensure callback execution is always done on the EventLoop.
- Also remove all methods that use Dispatch for now as we not need these
- Ensure we will detect if the user calls a blocking method while on the EventLoop and crash to guard against deadlock
2017-06-12 13:44:10 +02:00
Norman Maurer c0a2810840 Port AdaptiveRecvByteBufferAllocator from netty and make it the default 2017-06-12 09:13:21 +02:00
Kevin Clark c9c3651f29 Minor cleanup in byte buffer 2017-06-08 12:05:26 -07:00
Kevin Clark fc3e0fe384 ByteBuffer bounds checking fixes
This fixes a number of bounds checking issues, including changing the behavior of out of bounds access. Now if get is passed a negative value or a value beyond the size of the buffer, it explodes. If set is passed a negative value it also explodes, but values passed the end of the buffer continue to implicitly resize.
2017-06-08 11:51:41 -07:00
Johannes Weiß 12e48ebd4f TCO in doPendingWriteVectorOperation for Swift 4 2017-06-08 16:44:07 +01:00
Johannes Weiß 02ff223eba add faster (Static)String write path 2017-06-08 16:09:56 +01:00
Johannes Weiß 37cca97422 rename ByteBuffer.data to ByteBuffer.backingData (to refuse confusion) 2017-06-08 16:09:19 +01:00
Norman Maurer cd4866152d No need to allocate and free the iovec array all the time as we can just pin it on the EventLoop 2017-06-08 15:45:48 +02:00
Kevin Clark 751e3faef2 Fix EmbeddedChannelTest compile 2017-06-07 16:44:56 -07:00
Kevin Clark b3a98126f7 Fix unit tests broken in merge
Rename clashed with new test.
2017-06-07 11:25:01 -07:00
Kevin Clark 329b474f45 Initial impl of EmbeddedChannel 2017-06-05 16:59:51 -07:00
Johannes Weiß 312f6824b5 writev optimisation 2017-06-06 17:26:25 +01:00
Norman Maurer e8d60df8c2 Make naming more consistent and so make it more swift-like api 2017-06-06 22:06:47 +02:00
Johannes Weiß 0fd639fc02 allow the usage of the Data slices API 2017-06-02 12:54:32 +01:00
Norman Maurer 488dcdcb5e Add methods to ByteBufferAllocator that allows wrapping existing Data 2017-06-01 19:24:35 +02:00
Norman Maurer b915af9987 Rename write(string) to writeString(...), make it faster and add setter as well 2017-06-01 16:23:46 +02:00
Kevin Clark 60c0ab1f6e ByteBuffer unit tests
Greatly improves unit test coverage on ByteBuffer.
2017-05-31 09:09:48 -07:00
Norman Maurer f788e03f5d Implement ByteBuffer.discardReadBytes and add unit test 2017-05-27 08:47:16 +02:00
Kevin Clark 594bb0fb39 Fix ByteBuffer.write(string:) 2017-05-26 22:31:19 -07:00
Norman Maurer b33ad4b572 Add data set/get/write/read methods to ByteBuffer 2017-05-22 19:33:38 +02:00
Norman Maurer 3b0f013a6e Add slice(...) methods to ByteBuffer and fix a few bugs 2017-05-22 17:17:54 +02:00
Norman Maurer 9286f4e221 Add methods to get / read / set / write Integer types to ByteBuffer 2017-05-22 13:57:49 +02:00