kudu 0.2.0

Library for interacting with Antelope blockchains
Documentation
1
2
3
4
5
6
7
8
9
10
// SPDX-FileCopyrightText: 2026 DigiGaia SCCL
// SPDX-License-Identifier: AGPL-3.0-or-later

#[allow(clippy::double_parens)]
pub fn endian_reverse_u32(x: u32) -> u32 {
    (((x >> 24) & 0xFF)      ) |
    (((x >> 16) & 0xFF) <<  8) |
    (((x >>  8) & 0xFF) << 16) |
    (((x      ) & 0xFF) << 24)
}