예제 #1
0
        public virtual uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdRef.GetWordCount();
            wordCount += IdRef2.GetWordCount();
            return(wordCount);
        }
예제 #2
0
        public virtual uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdRef.GetWordCount();
            wordCount += LiteralInteger.GetWordCount();
            return(wordCount);
        }
예제 #3
0
        public static PairIdRefIdRef Parse(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PairIdRefIdRef();

            res.IdRef  = IdRef.Parse(reader, end - reader.Position);
            res.IdRef2 = IdRef.Parse(reader, end - reader.Position);
            return(res);
        }
예제 #4
0
        public static PairIdRefLiteralInteger Parse(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount;
            var res = new PairIdRefLiteralInteger();

            res.IdRef          = IdRef.Parse(reader, end - reader.Position);
            res.LiteralInteger = Spv.LiteralInteger.Parse(reader, end - reader.Position);
            return(res);
        }
예제 #5
0
 public virtual void Write(WordWriter writer)
 {
     IdRef.Write(writer);
     IdRef2.Write(writer);
 }
예제 #6
0
 public static IdRef Parse(WordReader reader, uint wordCount)
 {
     return(IdRef.Parse(reader, wordCount));
 }
예제 #7
0
 public virtual void Write(WordWriter writer)
 {
     IdRef.Write(writer);
     LiteralInteger.Write(writer);
 }