Skip to content

Please allow resetting the RepeatingGroup #758

Description

@xujin1999

这个RepeatingGroup不能重复使用,能不能提供一个reset或者clear方法,每一次解析都需要生成实例,很消耗性能
group := quickfix.NewRepeatingGroup(library.TagNoMDEntries,
quickfix.GroupTemplate{
quickfix.GroupElement(library.TagMDEntryType),
quickfix.GroupElement(library.TagMDEntryPx),
quickfix.GroupElement(library.TagMDEntrySize),
quickfix.GroupElement(library.TagMDEntryDate),
quickfix.GroupElement(library.TagMDEntryTime),
quickfix.GroupElement(library.TagMDEntryPositionNo),
})
Message.Body.GetGroup(group)

Message.Body.GetGroup(group) // err 不允许重复使用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions