Richard Schneeman on Nostr: nprofile1q…cp3s2 Looking at it, I think it MIGHT be possible to hack it like you ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqqtfvdrmuyd4xsllc5ktqnxhe556m2yl66pxkaktpmnk92frtlu7qtcp3s2 (nprofile…p3s2) Looking at it, I think it MIGHT be possible to hack it like you want to use it, but I wouldn't count on it.
If I were to try it, I would make my own custom struct that implements io::Read when it's read, it counts how many bytes are read and stores it somewhere that can escape back out of the Deserialize (for hacking/demonstration purposes this could be a global AtomicU64). Then run the deserializer once to get the front matter, and use the global AtomicU64 to store it.
If I were to try it, I would make my own custom struct that implements io::Read when it's read, it counts how many bytes are read and stores it somewhere that can escape back out of the Deserialize (for hacking/demonstration purposes this could be a global AtomicU64). Then run the deserializer once to get the front matter, and use the global AtomicU64 to store it.