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