浏览代码

Use updated API

/3.1
Tim Mowrer 6 年前
当前提交
7046db14
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/Scenes/ARCollaborationData/TCPConnection.cs

2
Assets/Scenes/ARCollaborationData/TCPConnection.cs


int bytesRemaining = size;
while (bytesRemaining > 0)
{
int bytesRead = m_ReadBuffer.Read(stream, 0, Mathf.Min(bytesRemaining, m_ReadBuffer.buffer.Length));
int bytesRead = m_ReadBuffer.Read(stream, 0, Mathf.Min(bytesRemaining, m_ReadBuffer.bufferSize));
builder.Append(m_ReadBuffer.buffer, 0, bytesRead);
bytesRemaining -= bytesRead;
}

正在加载...
取消
保存