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
'공부' 카테고리의 다른 글
[React] npm error code ENOENT (0) | 2025.02.04 |
---|---|
[React] Module not found: Error: Can't resolve 'web-vitals' (0) | 2025.01.24 |
Unexpected method 'appcast' called on Cask adoptopenjdk 에러 (0) | 2025.01.10 |
[알고리즘] 허프만 코드란? (0) | 2023.09.12 |
[Coding] 하드코딩이란? (0) | 2022.05.03 |