필터 지우기
필터 지우기

How do I set a read-only class to a specific value

조회 수: 6 (최근 30일)
Caly
Caly 2024년 4월 24일
댓글: Caly 2024년 5월 2일
Hello!
I was wondering is there a way to set the NumBytesAvailiable property of tcpclient to a specific value, to act in a way that the InputBufferSize functionality worked in previous versions of Matlab?
Thanks in advance!

채택된 답변

Walter Roberson
Walter Roberson 2024년 4월 24일
No, there is not. And if there was a way, setting the NumBytesAvailable would confuse the system because it would either lose track of data in the buffer (if you are reducing NumBytesAvailable) or would not have data in the buffer available (if you are increasing NumBytesAvailable)
If your purpose is to sort of reduce NumBytesAvailable to imitate a smaller input buffer, then at the point that data is to be read, ask it to read the minimum of NumBytesAvailable and the desired buffer size.
  댓글 수: 1
Caly
Caly 2024년 5월 2일
Thank you so much for the response! This makes a lot of sense

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by