공부

[Coding] 직렬화(Serialization), 역직렬화(Deserialization)란?

돌멩이수프 2022. 6. 4. 23:12
728x90

직렬화(Serialization)

메모리 상에 인스턴스(객체)로 존재하는 파일을 전송 가능한 형태인 바이트 배열로 만드는 것을 말한다.

 

역직렬화(Deserialization)

바이트 배열로 만들어진 파일을 다시 인스턴스(객체)로 변화시키는 것을 말한다.

 

 

이때 사용하는 것이 바로 BitConverter다.

https://codingjin0424.tistory.com/81

 

[C#] 바이트 배열을 int로, int를 바이트 배열로

using System; using System.Threading; namespace Study { class Program { static void Main(string[] args) { byte[] bytes = { 0, 0, 0, 25 }; if (BitConverter.IsLittleEndian) // 오른쪽 끝에 중요한 게 있..

codingjin0424.tistory.com

 

728x90