Skip to content

Support buffer with any byteOffset values instead of 0#146

Closed
twoeths wants to merge 1 commit intomultiformats:masterfrom
twoeths:tuyen/fix-bytes-to-port
Closed

Support buffer with any byteOffset values instead of 0#146
twoeths wants to merge 1 commit intomultiformats:masterfrom
twoeths:tuyen/fix-bytes-to-port

Conversation

@twoeths
Copy link
Copy Markdown
Contributor

@twoeths twoeths commented Sep 26, 2020

Got an issue when save port to a Buffer and use convert.toString() to get it back, it turns out multiaddr only expect a Buffer with 0 byte offset, this should support all types of Buffer.

@Gozala
Copy link
Copy Markdown
Contributor

Gozala commented Oct 1, 2020

@tuyennhv thanks for the fix! Could you please add a test case that will ensure this will not regress in the future ?

@Gozala Gozala self-assigned this Oct 8, 2020
@lidel
Copy link
Copy Markdown
Member

lidel commented Apr 5, 2021

@Gozala any update on this? Is this still relevant?

@Gozala
Copy link
Copy Markdown
Contributor

Gozala commented Apr 7, 2021

@Gozala any update on this? Is this still relevant?

It is still relevant as it solves actual bug, I think we still should write a test to avoid regressing this, however maybe we can land this and then (never) add test it in a followup PR.

@Gozala
Copy link
Copy Markdown
Contributor

Gozala commented Jun 22, 2021

close in favor of #201

@Gozala Gozala closed this Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants