示例#1
0
        public override void Read(Stream stream, int count, FrameContent content)
        {
            CodecState state     = new CodecState();
            CodecItem  codecItem = CodecItemByFrameId(FrameId);

            (content as FrameContentText).Text = codecItem.Read(state, stream) as string;
        }
示例#2
0
        public override void Read(Stream stream, int count, FrameContent content)
        {
            state.ItemCount = codecItems.Count;

            for (state.ItemIndex = 0; state.ItemIndex < state.ItemCount; state.ItemIndex++)
            {
                CodecItem entry = codecItems[state.ItemIndex];

                object value  = entry.Read(state, stream);
                object target = ObjectByTarget(entry.DestinationObject, content);
                SetProperty(PropInfo(target, entry.PropertyName), target, value);
            }
        }