블로그 이미지
Kanais
Researcher & Developer 퍼즐을 완성하려면 퍼즐 조각들을 하나 둘씩 맞춰나가야 한다. 인생의 퍼즐 조각들을 하나 둘씩 맞춰나가다 보면 인생이란 퍼즐도 완성되는 날이 오려나...?

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

04-27 17:20

Recent Post

Recent Comment

Recent Trackback

Archive

2023. 2. 17. 10:06 Programming/WPF

참고 : https://sosobaba.tistory.com/441

 

C# .Net Array.Copy() 바이트 복사

안녕하세요 마블랑입니다. 윈도우에서 소켓통신이나 시리얼 통신 등 통신 프로그램을 만들때 보통 바이트 단위로 데이터를 주고 받습니다. 그래서 바이트 단위로 데이터를 잘 다룬다면 어렵게

sosobaba.tistory.com

 

1. Array.Copy(byte[] source, int sourceIndex, byte[] destination, int destinationIndex, int length)

  - source : 복사 할 byte 배열

  - sourceIndex : 복사 할 byte 배열의 시작 index

  - destination : 저장 할 byte 배열

  - destinationIndex : 저장 할 byte 배열의 시작 index

  - length : 저장 할 data  길이

 

2. Array.Clear(byte[] array, int index, int length)

  -  array : 초기화 할 배열

  -  index : 초기화 할 배열의 시작 index

  -  length : 배열에서 초기화 할 data 길이

 

3. Array.Sort(byte[] array)

  - 오름차순 정렬

 

Array.Reverse(byte[] array) 

  - 내림차순 정렬

posted by Kanais