Oliver Schulz
b5fa527d2c
Simplified implementation of ByteIterator.indexOf
2012-05-30 00:02:50 +02:00
Oliver Schulz
d59fbbf8e4
Made bytestrings private in ByteString.ByteStrings
2012-05-30 00:02:50 +02:00
Oliver Schulz
60c7a57ddf
Code formatting changes as requested by Victor
2012-05-30 00:02:50 +02:00
Oliver Schulz
34e469c609
Fixed typos in ByteString comments
2012-05-30 00:02:49 +02:00
Oliver Schulz
9865a4e3e1
Added specialized implementation of foreach to MultiByteArrayIterator
2012-05-30 00:02:49 +02:00
Oliver Schulz
76010d5b56
Changed ByteIterator.span to return operand iterator first in tuple
...
Makes things more consistent, since ByteIterator.duplicate also returns
the operand iterator first.
2012-05-30 00:02:49 +02:00
Oliver Schulz
85b92b9547
Improved ByteStringSpec tests for iterator.{span, takeWhile, dropWhile}
2012-05-30 00:02:49 +02:00
Oliver Schulz
ff57958688
Workaround in ByteStringSpec for Scala-2.9 iterator.span bug
2012-05-30 00:02:49 +02:00
Oliver Schulz
7a854a9a83
Changed MultiByteArrayIterator to operate on a LinearSeq
...
ByteString.ByteStrings new creates it's iterator on a Stream instead of
a List, making ByteStings.iterator an O(1) operation.
2012-05-30 00:02:49 +02:00
Oliver Schulz
93d5e440ea
Removed object ByteStringBuilder
...
* ByteStringBuilder.apply was unusual for Scala Builders
* Moved OutputStreamWrapper implementation into ByteStringBuilder
2012-05-30 00:02:49 +02:00
Oliver Schulz
b54e9ba78e
Improved documentation of ByteString methods compact and isCompact
2012-05-30 00:02:49 +02:00
Oliver Schulz
151b74262e
Improved MultiByteArrayIterator.toByteString
...
MultiByteArrayIterator.toByteString now returns the optimal ByteString
representation for the data.
2012-05-30 00:02:49 +02:00
Oliver Schulz
0aff0ff101
Added lots of missing tests to ByteStringSpec
2012-05-30 00:02:42 +02:00
Oliver Schulz
c185f72c37
Fixed ByteIterator InputStream wrapping
...
Result of ByteIterator.asInputStream did not work correctly in all cases
2012-05-29 23:59:43 +02:00
Oliver Schulz
696cd5a192
Fixed implementations of ByteIterator.getBytes, getShorts, etc.
...
Implementations were broken.
2012-05-29 23:59:08 +02:00
Oliver Schulz
d3e878effb
Fixed ByteIterator.{take,drop,slice} for extreme argument values
2012-05-29 23:59:08 +02:00
Oliver Schulz
75c04d8944
Explicit types for everything related to ByteString and ByteStringIterator
2012-05-26 12:08:44 +02:00
Oliver Schulz
18e5b625f4
Added missing class description of ByteIterator
2012-05-26 11:43:57 +02:00
Oliver Schulz
5d08cd0b92
Removed ContByteString
...
A proper implementation of ContByteString with specialized return
types for methods like take, drop, etc. would have made things more
complex than it is worth.
2012-05-26 11:40:23 +02:00
Oliver Schulz
7273ac2f02
Fixed implementation of ByteIterator.InputStreamWrapper.next
2012-05-26 11:31:24 +02:00
Oliver Schulz
d3177bf08f
Improved return type specialization for methods implemented in super-type
2012-05-26 11:30:51 +02:00
Oliver Schulz
0c76e0f0f6
Moved ByteIterator implementations into object ByteIterator
2012-05-26 11:30:23 +02:00
Oliver Schulz
7d3edcddbc
Improved implementation of ByteStrings.iterator
2012-05-18 17:36:16 +02:00
Oliver Schulz
a032603858
Added variants of getBytes, getShorts, etc. to ByteByteIterator
...
Also removed byteOrder defaults for all get... methods.
2012-05-18 01:09:01 +02:00
Oliver Schulz
bc0693a2de
Added variants of putBytes, putShorts, etc. to ByteStringBuilder
...
Also removed byteOrder defaults for all put... methods.
2012-05-18 01:09:01 +02:00
Oliver Schulz
266c67679a
Added methods isCompact and isContiguous to ByteString
...
* The ability to check whether a ByteString is compact / contiguous
can be very useful when optimizing user code
2012-05-18 01:09:01 +02:00
Oliver Schulz
18e6e3ed7a
Made byteOrder implicit in ByteIterator methods
2012-05-18 01:09:01 +02:00
Oliver Schulz
5d7823fd49
Made byteOrder implicit in ByteStringBuilder methods
2012-05-18 01:09:01 +02:00
Oliver Schulz
844f09a5c7
Added methods getByte, getShort, etc. to ByteIterator
2012-05-18 01:09:01 +02:00
Oliver Schulz
15507dff85
Added methods putByte, putShort, etc. to ByteStringBuilder
2012-05-18 01:09:01 +02:00
Oliver Schulz
f4ee17dcac
Added methods getBytes, getShorts, etc. to ByteIterator
2012-05-18 01:09:01 +02:00
Oliver Schulz
f127b50ca2
Added methods putBytes, putShorts, etc. to ByteStringBuilder
2012-05-18 01:09:01 +02:00
Oliver Schulz
4517b44e8b
Added a java.io.InputStream wrapper for ByteIterator.
2012-05-18 01:09:01 +02:00
Oliver Schulz
53a01ecc12
Added a java.io.OutputStream wrapper to ByteStringBuilder
2012-05-18 01:09:01 +02:00
Oliver Schulz
3263f43060
Added a companion object, length and sizeHint to class ByteStreamBuilder
2012-05-18 01:09:01 +02:00
Oliver Schulz
b7e2246ce8
Improved implementations of ByteIterator.++
2012-05-18 01:09:01 +02:00
Oliver Schulz
018f1c92d5
Improved implementations of ByteString.++
2012-05-18 01:09:00 +02:00
Oliver Schulz
c8d7c995db
Enhanced ByteString implementation using ByteIterator
2012-05-18 01:09:00 +02:00
Oliver Schulz
76dab6354e
Added ByteIterator
2012-05-18 01:09:00 +02:00
Oliver Schulz
3436c3b14d
Added ByteString1.apply(bytes, startIndex, length)
2012-05-18 01:09:00 +02:00
Oliver Schulz
322edb2eca
Introduced ContByteString to complement CompactByteString
...
Many operations are necessarily more efficient on contiguous data
(represented by a contiguous part of an array) than on chunked data
(e.g. wrapping in a ByteBuffer, etc.).
It should be possibly to check whether a ByteString fulfills this
requirement and to specifically request such a ByteString for specific
applications. The new abstract ContByteString, as a natural bridge
between CompactByteString and ByteString, provides this.
2012-05-18 01:09:00 +02:00
Oliver Schulz
9076fbf268
Optimized ByteString1.++
2012-05-18 01:09:00 +02:00
Roland
4256522fc8
clarify semantics of name reuse/gracefulStop, see #2073
2012-05-16 13:43:00 +02:00
Roland
3757fbd24b
Merge branch 'wip-expect-primitives-∂π'
2012-05-16 09:10:58 +02:00
Roland
9105720809
properly take boxing into account when expecting messages by type or class
2012-05-15 21:12:46 +02:00
viktorklang
4794220e55
Merge pull request #454 from srp/master
...
assorted IO.SocketOption changes from last pull request comments
2012-05-15 07:19:04 -07:00
Scott R. Parish
39a36b7116
IO.SocketOption: switch back to one line-per case
2012-05-15 09:10:19 -05:00
Scott R. Parish
4eef9cd341
IO#fowardFailure: catch NonFatal rather then all Throwables
2012-05-15 09:10:19 -05:00
Scott R. Parish
8aeb313492
IO: use defaults for SocketOption param rather then overloading
...
Now that we're not targetting a 2.0 release we can break backwards
binary compat.
2012-05-15 08:49:57 -05:00
Scott R. Parish
34b2c24d33
IO.SocketOption: catch exceptions and forward them back to sender
2012-05-15 08:40:03 -05:00