On Saturday, 20 April 2019 at 22:16:22 UTC, Arredondo wrote:
On Saturday, 20 April 2019 at 14:24:34 UTC, 9il wrote:
On Friday, 19 April 2019 at 12:37:10 UTC, Arredondo wrote:
Slice!(Contiguous, [2], byte*) payload;
BTW, any reason not to use the new version of ndslice?
For new API it would be:
Slice!(byte*, 2, Contiguous)
or just
Slice!(byte*, 2)
I think this new ndslice API is newer than my code. I might
consider upgrading though, maybe in the new version
Slice.field() is const, so I can use my preferred
implementation of toHash()?
In the latest release you can do
yourSlice.lightConst.field
lightConst converts from const slice to slice of const.
I will add const and immutable field to the next major release.
Yoy can fill an issue in case you would also need other
functionality.
Best,
Ilya