コード例 #1
0
ファイル: FixPropValue.cs プロジェクト: haiyangIt/Haiyang
        public FixPropValue(PropertyTag propertyTag)
            : base()
        {
            _fixedPropType = FTFactory.Instance.CreateFixedPropType();
            _propInfo = FTFactory.Instance.CreatePropInfo(propertyTag);
            _fixedSizeValue = FTFactory.Instance.CreateFixedSizeValue(_fixedPropType, propertyTag.PropType);

            Children.Add(_fixedPropType);
            Children.Add(_propInfo);
            Children.Add(_fixedSizeValue);
        }
コード例 #2
0
ファイル: IPropValue.cs プロジェクト: haiyangIt/Haiyang
 public void ParsePropValue(byte[] buffer, ref int pos)
 {
     PropInfo = StreamUtil.CreatePropInfo(buffer, ref pos);
     FixedSizeValue = StreamUtil.CreateFixedSizeValue(FixedPropType, buffer, ref pos);
 }