public Netchan deserializeNetchan(byte[] buf) { var bb = new ByteBuffer(buf); var netchan = Netchan.GetRootAsNetchan(bb); //print(netchan.PlayersLength); /*var protocol = netchan.Protocol; * var sequence = netchan.Sequence; * var ack = netchan.Ack; * var player = (Player) netchan.Players; * var vec3 = (Vec3)player.Pos; * var x = vec3.X; * var y = vec3.Y; * var z = vec3.Z; * var n = new netchan(protocol, sequence, ack, x, y, z); */ return(netchan); }