forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockstore: Defer multi_get_bytes() allocation to caller (#4674)
multi_get_bytes() currently returns owned memory (Vec<u8>). But, the callers of multi_get_bytes() only require borrowed memory (&[u8]). So, update multi_get_bytes() to return a reference to rocksdb owned memory; the caller can copy to owned memory if they require it
- Loading branch information
Showing
1 changed file
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters