Norman Maurer
cbcabaf29b
Add support for method chaining to ByteBuf
2012-10-18 08:57:23 +02:00
Trustin Lee
820af50b63
[maven-release-plugin] prepare for next development iteration
2012-09-28 17:57:40 +09:00
Trustin Lee
595e1067c7
[maven-release-plugin] prepare release netty-4.0.0.Alpha5
2012-09-28 17:57:04 +09:00
Norman Maurer
b8ae8be96a
Fix IndexOutOfBoundException when using CompositeChannelBuffer and the readerIndex is at the last position and an empty array is passed to read to. See #474
2012-09-22 21:23:58 +02:00
norman
3295145e88
[maven-release-plugin] prepare for next development iteration
2012-09-13 10:40:52 +02:00
norman
42685759de
[maven-release-plugin] prepare release netty-4.0.0.Alpha4
2012-09-13 10:40:44 +02:00
Trustin Lee
f2538a996d
[maven-release-plugin] prepare for next development iteration
2012-08-30 16:47:52 +09:00
Trustin Lee
628c5598b3
[maven-release-plugin] prepare release netty-4.0.0.Alpha3
2012-08-30 16:46:58 +09:00
Norman Maurer
5dbb799a92
Merge pull request #554 from jfallows/composite-buffer
...
Prevent Unpooled.EMPTY_BUFFER from being stored in the composite buffer ...
2012-08-23 22:26:03 -07:00
Trustin Lee
73720c422d
[maven-release-plugin] prepare for next development iteration
2012-08-21 15:41:04 +09:00
Trustin Lee
68bef8cb99
[maven-release-plugin] prepare release netty-4.0.0.Alpha2
2012-08-21 15:40:45 +09:00
Trustin Lee
0a43350c66
[maven-release-plugin] prepare for next development iteration
2012-08-21 14:41:45 +09:00
Trustin Lee
56211fee59
[maven-release-plugin] prepare release netty-4.0.0.Alpha2
2012-08-21 14:39:59 +09:00
Trustin Lee
a0e34fd93a
[maven-release-plugin] prepare for next development iteration
2012-08-21 14:13:38 +09:00
Trustin Lee
72ccf65093
[maven-release-plugin] prepare release netty-4.0.0.Alpha2
2012-08-21 14:13:17 +09:00
John Fallows
83c21d70ee
Prevent Unpooled.EMPTY_BUFFER from being stored in the composite buffer due to a zero length slice, which causes reference counting problems on subsequent discardReadBytes.
2012-08-19 22:59:49 -07:00
Trustin Lee
df0aee22cb
[ #540 ] Add a variant of ByteBuf.ensureWritableBytes() which does not throw an exception
2012-08-20 12:52:38 +09:00
Trustin Lee
aa8a761fe2
Better exception message
...
.. as advised by @jpinner
2012-08-20 12:30:38 +09:00
Trustin Lee
505e767a09
[ #529 ] ByteBuf.ensureWritableBytes() can trigger IllegalArgumentException
...
- Remove redundant boundary check in ensureWritableBytes()
- Ensure calculateNewCapacity() never returns the value that exceeds
maxCapacity
2012-08-17 22:08:36 +09:00
John Fallows
06fd869711
Add support for AIO scattering reads and gathering writes.
...
o Add ByteBuf.hasNioBuffers() method
o Promote CompositeByteBuf.nioBuffers() methods to ByteBuf
o Use ByteBuf.nioBuffers() methods from AioSocketChannel
2012-08-12 17:29:07 -07:00
Trustin Lee
501746aeff
Fix an infinite loop in DefaultCompositeByteBuf.setBytes()
2012-08-08 17:42:58 +09:00
Trustin Lee
a2aadef4da
Add ByteBuf.Unsafe.discardSomeReadBytes() to reduce discardReadBytes()
2012-08-08 17:34:00 +09:00
norman
f7e0366bae
Add nioBuffers() and nioBuffers(..) method which will be used to support gathering writes for the AIO transport. See #492
2012-08-07 15:39:46 +02:00
Trustin Lee
728306b64f
Add CompositeByteBuf.consolidate()
...
- also added test cases that test automatic / full / ranged
consolidation
2012-08-05 18:32:30 +09:00
Trustin Lee
26e64eb305
Fix IOOBE after buffer truncation / Add CompositeByteBuf.addComponents()
...
- plus some bug fixes while running unit tests
2012-07-20 13:18:17 +09:00
Trustin Lee
8d813b127c
Replace free() with reference counting / Fix SlicedByteBuf.unsafe()
...
- based on @normanmaurer's feed back
- Added Unpooled.compositeBuffer(int)
2012-07-20 12:33:17 +09:00
Trustin Lee
5a613f379e
Make ByteBuf dynamic / Introduce an interface for composite buffers
...
- Replace ByteBufferBackedByteBuf with DirectByteBuf
- Make DirectByteBuf and HeapByteBuf dynamic
- Remove DynamicByteBuf
- Replace Unpooled.dynamicBuffer() with Unpooled.buffer() and
directBuffer()
- Remove ByteBufFactory (will be replaced with ByteBufPool later)
- Add ByteBuf.Unsafe (might change in the future)
2012-07-19 20:25:47 +09:00
Trustin Lee
d801459cb8
[maven-release-plugin] prepare for next development iteration
2012-07-10 23:11:33 +09:00
Trustin Lee
527f2f6c6e
[maven-release-plugin] prepare release netty-4.0.0.Alpha1
2012-07-10 23:10:48 +09:00
Trustin Lee
917ed5173e
Fix a bug where discardReadBytes() doesn't adjust markers
...
.. if buffer is empty
2012-07-10 14:23:31 +09:00
Cruz Julian Bishop
b9d16663d9
Fixes javadoc from #414 / #415 (@trustin)
2012-06-30 20:30:56 +10:00
Norman Maurer
27b83a480b
Fix checkstyle
2012-06-29 12:49:58 +02:00
Norman Maurer
07095a41f4
Rename method and make it more clear thats an expert method. See #414 #415
2012-06-29 12:28:08 +02:00
Cruz Julian Bishop
c52cb0ea21
Assuming that @trustin will want this changed :)
2012-06-29 19:27:41 +10:00
Cruz Julian Bishop
c55e10c12a
Fix a bug where a potential overflow occurs
2012-06-29 13:38:53 +10:00
Cruz Julian Bishop
b11d4fa37a
Two tentative last asserts in the test
2012-06-29 13:37:41 +10:00
Cruz Julian Bishop
557f1c85df
Little bit more testing
2012-06-29 13:35:14 +10:00
Cruz Julian Bishop
3d9be81377
Provide a basic test for getBufferFor()
2012-06-29 13:31:02 +10:00
Cruz Julian Bishop
e2989719e1
Comply with line width a bit more
2012-06-28 19:34:52 +10:00
Cruz Julian Bishop
a504aa1159
Documentation and checkstyle fixes from @fredericBregier
...
This is part of #414
2012-06-28 19:33:54 +10:00
Cruz Julian Bishop
42f3a6750a
Add documentation and changes to ComposityByteBuf.getBufferFor(index)
...
Thanks to @kimchy and @fredericBregier
This is part of #414
2012-06-28 19:01:16 +10:00
Cruz Julian Bishop
49f0e32428
Actually throw the correct Exception type. Whoops!
...
This should be done, now.
2012-06-28 10:31:49 +10:00
Cruz Julian Bishop
332a35f9ed
Simplify the process of getting the component
2012-06-28 10:29:11 +10:00
Cruz Julian Bishop
cb8c9767f6
Adds a method to get the buffer for a specific index in CompositeByteBuf
...
This fixes #414
2012-06-28 10:24:18 +10:00
Trustin Lee
1be9bbf62c
Add CompositeByteBuf.numComponents()
2012-06-24 22:14:17 +09:00
Trustin Lee
8b7af2ca3b
Generate Javadoc with APIviz
2012-06-13 12:11:11 +09:00
Trustin Lee
3b562c917d
Move ChannelBufferType to netty-buffers and rename it to ChannelBufType
...
- Also add ChannelBuf.type()
2012-06-12 17:05:28 +09:00
Trustin Lee
ecd0ae5406
Prefer MessageBuf over Queue where possible
...
- Also replaced thread safe queues with non-thread-safe ones where
possible
- Unpooled.wrappedBuffer(Queue<T>) does not wrap MessageBuf anymore
2012-06-12 17:02:00 +09:00
Trustin Lee
6211e53e86
Code clean-up based on IntelliJ code analysis
2012-06-11 22:54:28 +09:00
Trustin Lee
40a7659784
Move utility methods in Unpooled to ByteBufUtil
2012-06-11 20:41:19 +09:00