Vào 20:13:59 UTC+7 Thứ Năm, ngày 15 tháng 10 năm 2015, David Renshaw đã viết:
And about this, because message.getSegmentsForOutput().length always is 1 so I think I only need get message.getSegmentsForOutput()[0]; After that, I print myBuffer and test it by deserialize into myObject again, And I got IndexOutOfBoundException like I said to you in the previous message.
And if I use org.Capnp.Serialize.write(), this command only write to a class implement WritableChannel, while I want to write a ByteBuffer. So I can't use this command,
Any recommend?