Skip to main content
u16_be_from_bytes
vest_
lib
In vest_
lib::
combinators::
uints::
spec
vest_lib
::
combinators
::
uints
::
spec
Function
u16_
be_
from_
bytes
Copy item path
Source
pub
open spec
fn u16_be_from_bytes(i: [
u8
;
2
]) ->
u16
Expand description
{ (i[
0
]
as
u16) <<
8
| (i[
1
]
as
u16) }