Monday, May 30, 2016

Re: Convert Bytes from byte[] to data types

We work with binary using Int8ArrayNative, Float32ArrayNative, and Float64ArrayNative
It is easy to convert utf-8 to String via String(byte[])

Binary file access is very fast and efficient. 
You can transfer native binary data and load mesh with millions of triangles in few milliseconds (from cache)
No need to parse anything. Very fast.

https://studio.cospaces.io/#Gallery
 
On Sunday, May 29, 2016 at 7:08:59 PM UTC+3, Federico Mouse wrote:
I'm making a game that receives data (string names, ints about position, etc.) via websockets, using https://github.com/sksamuel/gwt-websockets, in binary data.

Is there a way to convert that data back to String, Int, etc. in GWT?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment