You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew feature or requestmojoIssues that are related to mojomojo-repoTag all issues with this labelmojo-stdlibTag for issues related to standard library
The other night I was trying to follow the Implement DNS in a weekend course in Mojo. In the course they use struct.pack to make the byte array for the DNS query. Since Mojo has actual sized int types, it might make more sense to have a protocol that describes conversion to and from bytes. One particular caveat is byte ordering, so if this protocol were added it would probably have a to_le_bytes() and to_be_bytes() (though one could possible be inferred from the other).
The text was updated successfully, but these errors were encountered:
enhancementNew feature or requestmojoIssues that are related to mojomojo-repoTag all issues with this labelmojo-stdlibTag for issues related to standard library
The other night I was trying to follow the Implement DNS in a weekend course in Mojo. In the course they use
struct.pack
to make the byte array for the DNS query. Since Mojo has actual sized int types, it might make more sense to have a protocol that describes conversion to and from bytes. One particular caveat is byte ordering, so if this protocol were added it would probably have ato_le_bytes()
andto_be_bytes()
(though one could possible be inferred from the other).The text was updated successfully, but these errors were encountered: