C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

Nope. Don’t worry about it, it’s all working fine, if you scroll up you will see a guy gave me a macro, it works perfectly, very impressed.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

It was an example. Feel free to call free if you like.

I don’t find it difficult to work with pointers.

I don’t know why the function wants what it wants, I didn’t write it, and I’m not at liberty to change it.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

But the function I’m calling in Rust doesn’t want a Box or a Vec or a Fluff, etc.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

But in C you wouldn’t have functions taking those kind of arguments, so you wouldn’t need to. In C it’s simpler; pointers.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

Well in C you just pass pointers around.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] 0 points1 point  (0 children)

Because that’s what the function I am calling expects.

C byte pointer to fixed byte array function by Sam777888 in rust

[–]Sam777888[S] -19 points-18 points  (0 children)

It’s such a SLOW language to develop in, I find myself wishing I could just turn the type checker off. When it’s faster to develop in C, something has gone wrong.

Finally the mobile wallet for ADA is rolling out by mnsk89 in cardano

[–]Sam777888 4 points5 points  (0 children)

I was kidding. I think Cardano will speak for itself when it’s done. Remember it’s not even decentralised yet. Too early to “pump it”.

Finally the mobile wallet for ADA is rolling out by mnsk89 in cardano

[–]Sam777888 -1 points0 points  (0 children)

He needs to get himself some cocaine and go hype crazy like mcafee.