Esempio n. 1
0
        /// <summary>
        /// Reads a call id node template definition.
        /// </summary>
        /// <param name="Reader"></param>
        /// <returns></returns>
        public static CallIdNodeTemplate Read(LoycBinaryReader Reader)
        {
            int symbolIndex = Reader.Reader.ReadInt32();
            var types       = Reader.ReadList(Reader.ReadEncodingType);

            return(new CallIdNodeTemplate(symbolIndex, types));
        }
Esempio n. 2
0
 /// <summary>
 /// Reads the given binary loyc tree file.
 /// </summary>
 /// <param name="InputStream"></param>
 /// <param name="Identifier"></param>
 /// <returns></returns>
 public static IReadOnlyList <LNode> ReadFile(Stream InputStream, string Identifier)
 {
     using (var reader = new LoycBinaryReader(InputStream))
     {
         return(reader.ReadFile(Identifier));
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Reads an attribute list node template definition.
 /// </summary>
 /// <param name="Reader"></param>
 /// <returns></returns>
 public static AttributeNodeTemplate Read(LoycBinaryReader Reader)
 {
     return(new AttributeNodeTemplate(Reader.ReadList(Reader.ReadEncodingType)));
 }
Esempio n. 4
0
 /// <summary>
 /// Reads a call node template definition.
 /// </summary>
 /// <param name="Reader"></param>
 /// <returns></returns>
 public static CallNodeTemplate Read(LoycBinaryReader Reader)
 {
     return(new CallNodeTemplate(Reader.ReadList(Reader.ReadEncodingType)));
 }