diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-09-27 09:56:19 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-09-27 09:56:19 +0000 |
commit | 5579374fc1d14407b35d79d9cd5a77a6004886ec (patch) | |
tree | b2cbe5e26dd76ffc406301578265c62999956a4d /src/library | |
parent | 2399a69b90ad9a61897f8a4c400056ad72e3c2c5 (diff) | |
download | scala-5579374fc1d14407b35d79d9cd5a77a6004886ec.tar.gz scala-5579374fc1d14407b35d79d9cd5a77a6004886ec.tar.bz2 scala-5579374fc1d14407b35d79d9cd5a77a6004886ec.zip |
close #3864.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/generic/ByteCodecs.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/reflect/generic/ByteCodecs.scala b/src/library/scala/reflect/generic/ByteCodecs.scala index fd2e326e19..4bd82ec286 100644 --- a/src/library/scala/reflect/generic/ByteCodecs.scala +++ b/src/library/scala/reflect/generic/ByteCodecs.scala @@ -193,7 +193,9 @@ object ByteCodecs { @deprecated("use 1-argument version instead") def decode(xs: Array[Byte], dstlen: Int) { decode(xs) } - /** Destructively decode array xs and returns the length of the decoded array */ + /** Destructively decode array xs and returns the length of the decoded array + * LUKAS: my testing showed that this actually retruns the length of the + * decoded array + 1. Gilles, please check. */ def decode(xs: Array[Byte]): Int = { val len = regenerateZero(xs) decode7to8(xs, len) |