Sign in
android
/
platform
/
external
/
rust
/
crates
/
os_str_bytes
/
bec3b8519f44d329bfc3d7c8a52f1fe01a0e4d58
/
.
/
src
/
util.rs
blob: f931969c52b3d2842cb4b9a547f9ee406bb02750 [
file
] [
log
] [
blame
]
pub
(
super
)
const
BYTE_SHIFT
:
u8
=
6
;
pub
(
super
)
const
CONT_MASK
:
u8
=
(
1
<<
BYTE_SHIFT
)
-
1
;
pub
(
super
)
const
CONT_TAG
:
u8
=
0b1000
_0000
;
pub
(
super
)
const
fn
is_continuation
(
byte
:
u8
)
->
bool
{
byte
&
!
CONT_MASK
==
CONT_TAG
}