Skip to main content

Crate conv_bit

Crate conv_bit 

Source
Expand description

§변환(conv) 모듈

이 모듈에는 비트와 숫자를 변환하는 함수가 들어 있습니다. 이 모듈 안에 들어 있는 코드는 기본적으로 편의상 최적화를 실행하지 못했습니다. 컴퓨터 구조를 공부하기 위해서 작성한 교육 목적의 코드이기 때문에 최적화는 생각하지 못하고 있습니다. 참고하세요.

§목록

  • from_eight_bool_to_eight_bit: 8 자리 bool Array 을 8 자리 bit Array 으로 변환
  • from_eight_bit_to_eight_bool: 8 자리 bit Array 를 8 자리 bool Array 으로 변환
  • from_eight_bit_to_one_u8_int: 8 자리 bit Array를 1개의 u8 int로 변환
  • from_one_u8_int_to_eight_bit: 1개의 u8 int를 8 자리 bit Array로 변환

Modules§

number

Functions§

from_eight_bit_to_eight_bool
u8 형식으로 된 여덟 자리 Array 를 bool 형식으로 된 여덟 자리 Array로 변경하는 함수
from_eight_bit_to_one_u8_int
u8 형식으로 된 이진수 여덟 자리 리스트를 u8 형식으로 된 int로 변경하는 함수
from_eight_bool_to_eight_bit
bool 형식으로 된 여덟 자리 Array를 u8 형식으로 된 여덟 자리 Array로 변경하는 함수
from_one_u8_int_to_eight_bit
u8 형식인 intu8로 된 여덟 자리 리스트로 변경하는 함수