Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Refactor ta_send_transfer_req_deserialization #69

Merged
merged 8 commits into from
Feb 20, 2019

Conversation

jkrvivian
Copy link
Member

Close #68

serializer/serializer.c Outdated Show resolved Hide resolved
serializer/serializer.c Show resolved Hide resolved
serializer/serializer.h Outdated Show resolved Hide resolved
serializer/serializer.c Outdated Show resolved Hide resolved
serializer/serializer.c Outdated Show resolved Hide resolved
void fill_tag(char* new_tag, char* old_tag, size_t tag_len) {
// fill in '9'
memset(new_tag, 57, NUM_TRYTES_TAG);
memcpy(new_tag, old_tag, tag_len);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you avoid duplicated memory operations?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sprintf can deal this.
And what is the concern of duplicated memory operations? 🤔

serializer/serializer.c Outdated Show resolved Hide resolved
@jserv jserv merged commit 70589ca into DLTcollab:master Feb 20, 2019
@jkrvivian jkrvivian deleted the send_transfer_deserialization branch February 20, 2019 07:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants