Comments (6)
应该是隐式转换的地方传入了长度去检查,实际上应该是长度-1来作为索引,这块我晚点整理一下。
from nino.
处理好了,特意增加了个用来以总量进行判断的函数
from nino.
index是索引,是下标,所以是一直需要小于当前长度的。
下标所允许的最大值应该是总长度-1,所以这里用小于,而非小于等于是正确的
隐式转换的地方没看到有操作TotalLength
from nino.
from nino.
直觉上,EnsureCapacity函数参数的语义应该以“容量”而不是“索引”来处理会好一些
from nino.
嗯,主要是一般都是检查访问的index是否存在,所以检查的时候就是检查index是否小于totalLength了,隐式转换的地方我晚点用电脑处理一下
from nino.
Related Issues (20)
- v1.2.0 ilruntime报错 无法使用 HOT 1
- 嵌套使用生成失败
- NinoSerialize(false)序列化报错
- 是否可以支持序列化分组
- 反序列化错误 HOT 11
- jengine 热更工程List反序列化问题 HOT 2
- 使用Jengine 在热更工程里无法反序列化
- 序列化成功后 反序列化失败 HOT 1
- 反序列化Int类型错误 HOT 3
- -1 (int类型)会被Nino 反序列化成 255
- unsigned serialization error
- 能不能支持一下多态 HOT 6
- 在je热更新工程 有问题
- 热更工程 反序列化失败 HOT 1
- 多态相关,抽象类直接作为成员变量时序列化报错 HOT 8
- 1.0.21版本32位内存对齐有问题
- 自定收集标签[NinoSerialize(true)]下的忽略标签[NinoIgnore]无效。 HOT 1
- 模拟器下,对齐导致安卓闪退问题。
- 请教 HOT 2
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 nino.