compare_bytes
compare_bytes (바이트 사전식 비교)
두 바이트 범위를 부호 없는 바이트로 사전식 비교하는 내장 함수예요.
출처: Rust 공식 문서
본문
[left, left + bytes) 와 [right, right + bytes) 를 부호 없는 바이트로 사전식(lexicographically) 비교해요. left 가 작으면 음수, 모든 바이트가 같으면 0, left 가 크면 양수를 반환해요.
pub const unsafe fn compare_bytes( left: *const u8 , right: *const u8 , bytes: usize , ) -> i32