Comments (1)
作者回复:
hi,此处书上是对的,表述可能有些不严谨。说到“移动了数据”其实在MoveBytes方法中用到的是Array.copy,也就是将原先第3-5位的数据覆盖到1-3位。因为复制是个消耗的操作,为了让复制的数据量最小,我们只复制3-5位而不是整个缓冲区。所以复制后缓冲区里的4-5位保持不变。
from unity_net_book.
Related Issues (11)
- 第二版的出版时间及和第一版的差异? HOT 2
- 游戏开发最常用的是TCP协议
- 调试过程中发现的客户端NetManager.cs 代码bug HOT 1
- 异步和多路复用应用场景问题? HOT 4
- 请问第106页,“粘包分包完整示例”测试中有没有出现过永远只显示最新一条消息的情况? HOT 4
- 勘误+建议 HOT 1
- 第二版第8章的一些代码问题 HOT 1
- 勘误(?还是该叫补充...):3.4.5节 测试网络模块 HOT 1
- [建议]6.6测试OnMove提醒一下响声的原因
- 有错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity_net_book.