コード例 #1
0
 /// <summary>
 /// Write instruction operands into bytecode stream.
 /// </summary>
 /// <param name="writer">Bytecode writer.</param>
 public override void WriteOperands(WordWriter writer)
 {
     FwdRefOffset.Write(writer);
     BwdRefOffset.Write(writer);
     SearchWindowConfig.Write(writer);
     Payload.Write(writer);
 }
コード例 #2
0
        /// <summary>
        /// Calculate number of words to fit complete instruction bytecode.
        /// </summary>
        /// <returns>Number of words in instruction bytecode.</returns>
        public override uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdResultType.GetWordCount();
            wordCount += IdResult.GetWordCount();
            wordCount += SearchWindowConfig.GetWordCount();
            wordCount += DualRef.GetWordCount();
            return(wordCount);
        }
コード例 #3
0
        /// <summary>
        /// Calculate number of words to fit complete instruction bytecode.
        /// </summary>
        /// <returns>Number of words in instruction bytecode.</returns>
        public override uint GetWordCount()
        {
            uint wordCount = 0;

            wordCount += IdResultType.GetWordCount();
            wordCount += IdResult.GetWordCount();
            wordCount += RefOffset.GetWordCount();
            wordCount += SearchWindowConfig.GetWordCount();
            wordCount += Payload.GetWordCount();
            return(wordCount);
        }
コード例 #4
0
 /// <summary>
 /// Write instruction operands into bytecode stream.
 /// </summary>
 /// <param name="writer">Bytecode writer.</param>
 public override void WriteOperands(WordWriter writer)
 {
     SearchWindowConfig.Write(writer);
     DualRef.Write(writer);
 }