You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Serializable]
public class ByteArray64K
{
public byte[] Arr { get; set; }
}
class MainClass
{
public static void Main (string[] args)
{
var ser = new BoisSerializer ();
var arr = new ByteArray64K(){Arr = new byte[65536]};
byte[] data;
using (MemoryStream ms = new MemoryStream ()) {
ser.Serialize (arr, ms);
data = ms.ToArray ();
}
ByteArray64K des1;
using (MemoryStream ms = new MemoryStream (data)) {
des1=ser.Deserialize<ByteArray64K>(ms);
}
Console.WriteLine ("length1={0}, length2={1}", arr.Arr.Length, des1.Arr.Length);
}
}
Result is: length1=65536, length2=0.
bois version 1.8
mono --version
Mono JIT compiler version 3.10.0 (tarball Wed Nov 5 13:32:50 UTC 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
The text was updated successfully, but these errors were encountered:
This code is failed to deserialize
Result is: length1=65536, length2=0.
bois version 1.8
mono --version
The text was updated successfully, but these errors were encountered: