예제 #1
0
        public static bool FromBytes(byte[] data, ref int pos, int end, out OscPacket packet)
        {
            if (data[pos] == '#')
            {
                if (!OscBundle.FromBytes(data, ref pos, end, out packet))
                {
                    return(false);
                }
            }
            else
            {
                //
                //while( pos < data.Length && data[pos] == 0 ) pos++;

                if (!OscMessage.FromBytes(data, ref pos, out packet))
                {
                    return(false);
                }
            }
            return(true);
        }