Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Q quickfix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • quickfixgo
  • quickfix
  • Issues
  • #338
Closed
Open
Issue created Jul 31, 2018 by Administrator@rootContributor

Add deep copy for Messages

Created by: zeeke

Hi,

As far as I know, quickfix.Message objects referred on received messages are created by quickfix.messagePool and pooled for later use. This optimization prevents me to save a Message reference, i.e. in an array.

It would be useful to have a Message deep copy function in order to get an isolated copy of the message. At the moment, the only way I found to achieve this result involve dumping and parsing back the message:

messageCopy := quickfix.NewMessage()
quickfix.ParseMessage(messageCopy, bytes.NewBufferString(originalMessage.String()))

What do you think about it?

Assignee
Assign to
Time tracking