Inflearn brand logo image

Inflearn Community Q&A

wushy94011's profile image
wushy94011

asked

[C# and Unity MMORPG Game Development Series] Part4: Game Server

SendBuffer

Arraysegment return null 부분 컴파일 에러

Written on

·

528

1

open 함수의 if (reserveSize > FreeSize) 문 부분에서

return null과  ArraySegment<byte>.Empty를 둘 다 사용해 보았는데 null은 null을 반환할 수 없다 / Empty는 정의가 포함되어있지 않다는 오류가 발생합니다.

.net 도 최신 버전으로 설치되어 있는데 왜 이러는건지 잘 모르겠습니다 ㅠㅠ 혹시 대체할만한 다른 코드가 있을까요?

             

C#unitynetwork

Answer 1

2

rookiss님의 프로필 이미지
rookiss
Instructor

그냥 기본형으로 반환해주세요
new ArraySegment<byte>();

wushy94011's profile image
wushy94011

asked

Ask a question