public int GetDataToBuffer(Array targetBuffer, int nowOffset)
 {
     foreach (IPacketItem item in FieldList.Values)
     {
         XmlCommandField field = item as XmlCommandField;
         nowOffset = field.GetDataToBuffer(targetBuffer, nowOffset);
     }
     return(nowOffset);
 }
Example #2
0
        public int GetDataToBuffer(Array targetBuffer, int nowOffset)
        {
            if (VariableSizeField != null && VariableField != null)
            {
                VariableSizeField.DataValue = Buffer.ByteLength(VariableField.TargetBuffer); //크기 지정..
            }

            foreach (XmlCommandField item in FieldList.Values)
            {
                XmlCommandField field = item as XmlCommandField;
                nowOffset = field.GetDataToBuffer(targetBuffer, nowOffset);
            }

            foreach (XmlCommandFields item in FieldsList.Values)
            {
                XmlCommandFields fields = item as XmlCommandFields;
                nowOffset = fields.GetDataToBuffer(targetBuffer, nowOffset);
            }
            return(nowOffset);
        }