Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
Caly
Caly el 24 de Abr. de 2024
Comentada: Caly el 2 de Mayo de 2024
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!

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Abr. de 2024
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 comentario
Caly
Caly el 2 de Mayo de 2024
Thank you so much for the response! This makes a lot of sense

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by