byte stream 다루는법

김새우·2022년 10월 13일
0

go

목록 보기
10/13

go에서는 io 패키지의 io.Reader, io.Writer 인터페이를 이용하여 I/O stream을 다루는 방법을 제공한다

Reader Interface

  • ReadFull
  • ioutil.ReadAll

Writer Interface

[duplicate writes]

  • MultiWriter

[standard I/O stream]

  • fprintln...

[string write 최적화]

  • io.WriteString

[Copying bytes: read adn bytes together]

  • copy()함수
  • copyN() 특정 바이트만큼 copy

[io.Pipe]

  • pipewriter pipeReader

0개의 댓글