mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Use DataStream where possible
This commit is contained in:
parent
fa9becfe1c
commit
fa29e73cda
48 changed files with 144 additions and 151 deletions
|
|
@ -152,7 +152,7 @@ FUZZ_TARGET_INIT(integer, initialize_integer)
|
|||
const CScriptID script_id{u160};
|
||||
|
||||
{
|
||||
CDataStream stream(SER_NETWORK, INIT_PROTO_VERSION);
|
||||
DataStream stream{};
|
||||
|
||||
uint256 deserialized_u256;
|
||||
stream << u256;
|
||||
|
|
@ -217,7 +217,7 @@ FUZZ_TARGET_INIT(integer, initialize_integer)
|
|||
}
|
||||
|
||||
{
|
||||
CDataStream stream(SER_NETWORK, INIT_PROTO_VERSION);
|
||||
DataStream stream{};
|
||||
|
||||
ser_writedata64(stream, u64);
|
||||
const uint64_t deserialized_u64 = ser_readdata64(stream);
|
||||
|
|
@ -245,7 +245,7 @@ FUZZ_TARGET_INIT(integer, initialize_integer)
|
|||
}
|
||||
|
||||
{
|
||||
CDataStream stream(SER_NETWORK, INIT_PROTO_VERSION);
|
||||
DataStream stream{};
|
||||
|
||||
WriteCompactSize(stream, u64);
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue