This commit is contained in:
parent
baf0eb2510
commit
d3df2e5ed3
2 changed files with 19 additions and 5 deletions
|
|
@ -111,7 +111,7 @@ object ByteString {
|
|||
def readFromInputStream(is: ObjectInputStream): ByteString1C = {
|
||||
val length = is.readInt()
|
||||
val arr = new Array[Byte](length)
|
||||
is.read(arr, 0, length)
|
||||
is.readFully(arr, 0, length)
|
||||
ByteString1C(arr)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue