Example #1
0
        public static string UnpackString(MessageElement m)
        {
            string s = MessageElementUtil.CastDataAndDispose <string>(m);

            if (s == null)
            {
                throw new NullReferenceException();
            }
            return(s);
        }
Example #2
0
        public static MultiDimArray UnpackMultiDimArray(MessageElement m)
        {
            MultiDimArray a = RobotRaconteurNode.s.UnpackMultiDimArrayDispose(
                MessageElementUtil.CastDataAndDispose <MessageElementNestedElementList>(m));

            if (a == null)
            {
                throw new NullReferenceException();
            }
            return(a);
        }
Example #3
0
 public static NamedMultiDimArray UnpackNamedMultiDimArray <T>(MessageElement m)
     where T : struct
 {
     return(RobotRaconteurNode.s.UnpackNamedMultiDimArrayDispose <T>(
                MessageElementUtil.CastDataAndDispose <MessageElementNestedElementList>(m)));
 }
Example #4
0
 public static T UnpackStructure <T>(MessageElement m)
 {
     return(RobotRaconteurNode.s.UnpackStructureDispose <T>(
                MessageElementUtil.CastDataAndDispose <MessageElementNestedElementList>(m)));
 }