public override int DecodeFrameData(int frameIndex, byte[] packetBytes, int startIndex, int length) { int currentIndex = startIndex; currentIndex = InteractionFragment.DecodeFragmentData(frameIndex, packetBytes, currentIndex); FrameCount = InteractionFragment.FrameCount; // refreshing message frame count from object fragment //FramesDecoded++; return(currentIndex); }
public override int DecodeFrameData(int frameIndex, byte[] packetBytes, int startIndex, int length) { int currentIndex = startIndex; if (frameIndex == 0) { // Response Fragment currentIndex = EncodeUtil.Decode(ref RequestMessageId, packetBytes, currentIndex); currentIndex = EncodeUtil.Decode(ref FailureCode, packetBytes, currentIndex); } currentIndex = InteractionFragment.DecodeFragmentData(frameIndex, packetBytes, currentIndex); FrameCount = InteractionFragment.FrameCount; // refreshing message frame count from object fragment //FramesDecoded++; return(currentIndex); }