Issue Details (XML | Word | Printable)

Key: DIRMINA-165
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Federico Bonelli
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Easy and performant copy of the ByteBuffer

Created: 13/Jan/06 09:34 PM   Updated: 26/May/09 12:48 AM
Return to search
Component/s: None
Affects Version/s: 0.8.0, 0.8.1, 0.8.2, 0.9.0
Fix Version/s: 0.9.3

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works ByteBuffer.java 2006-01-17 11:17 PM Federico Bonelli 116 kB
Zip Archive Licensed for inclusion in ASF works HubServer_broadCastTCPmessages.zip 2006-01-17 11:16 PM Federico Bonelli 4 kB

Resolution Date: 22/Mar/06 05:03 PM


 Description  « Hide
Until now if you wish to broadcast a message you must create by your own the bytebuffer copies, it would be better to provide a ByteBuffer.asReadOnly() method that create a copy that share the data with the original ByteBuffer

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #387793 Wed Mar 22 08:28:53 UTC 2006 trustin Resolved issue: DIRMINA-165 (Easy and performant copy of the ByteBuffer)
* Added duplicate(), slice(), and asReadOnlyBuffer() to Bytebuffer
* Implemented these three methods for all allocator implementations
Files Changed
MODIFY /directory/trunks/mina/core/src/main/java/org/apache/mina/common/PooledByteBufferAllocator.java
MODIFY /directory/trunks/mina/core/src/main/java/org/apache/mina/common/ByteBufferProxy.java
MODIFY /directory/trunks/mina/core/src/test/java/org/apache/mina/common/ByteBufferTest.java
MODIFY /directory/trunks/mina/core/src/main/java/org/apache/mina/common/SimpleByteBufferAllocator.java
MODIFY /directory/trunks/mina/core/src/main/java/org/apache/mina/common/ByteBuffer.java