-
I have a string, I have a memory marshal, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The scenario would be useful because I am encrypting the string, I don't care about length for now just for the sake of protecting the planet we need to reuse as much memory as possible so lets mutate the string and write our encrypted text inside without allocating a new memory region for it. I can do the encryption again and again and again, without seeing allocation in gen0 Maybe we should let FastAllocateString be public I am hearing
Seems uninclusive to people from c |
Beta Was this translation helpful? Give feedback.
-
Mutating a
That's what |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
https://sharplab.io/#v2:C4LgTgrgdgPgAgJgIwFgBQcAMACOSB0AStMAJYC2ApvgMID25ADqQDaVgDK7AbqQMaUAzgG506AGZ0w2ABTcAhtNLYAvNkzDsygDzYkG7AGpDpAJToA3umw3cSAJwyzotAF8xGBNgCCl67YBtAFk6ABMINgBJKFIyeRZSAC92AF1/GzgAZjsANlwAFmxo2JlzNFtsK3KK20lpOUUtVXVNHT0DYzN0mqqavuxoQXlxSm7+yrHx2tIAD0pQ2T4AC0UAKmxGZtJ8ABU6DmAwUigAc1Kyqf7ey6nVzbUAcgB1h5cbmvdqy8/xn9tPz7oIA==