Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
Accepted
How to allot 1 bit space for boolean in Anchor program?
Measuring some data types' size in bytes and some others' size in bits, makes serialization/deserialization significantly more error prone (which is also why I'd assume Solana made the above design decision …
2
votes
Accepted
What is the difference between `serialize`,`try_to_vec` and `try_serialize` in anchor?
, w2);
// Output:
try_to_vec: []
try_serialize: [197, 149, 223, 199, 86, 73, 227, 77] // This is the discriminator
serialize: []
The same applies for the deserialization functions anchor provides, MyAccount …