[ 登录注册 ]

yuyan

TypeError: value is out of bounds

2016-08-25 22:35:23 admin 返回上一页

1、错误描述

> buffer.writeUInt8(256,3);
TypeError: value is out of bounds
    at checkInt (buffer.js:825:11)
    at Buffer.writeUInt8 (buffer.js:873:5)
    at repl:1:8
    at REPLServer.defaultEval (repl.js:262:27)
    at bound (domain.js:287:14)
    at REPLServer.runBound [as eval] (domain.js:300:12)
    at REPLServer.<anonymous> (repl.js:431:12)
    at emitOne (events.js:82:20)
    at REPLServer.emit (events.js:169:7)
    at REPLServer.Interface._onLine (readline.js:211:10)
>

2、错误原因

     这个value参数值超过指定类型的数值允许范围


3、解决办法

> buffer.writeUInt8(255,3);
4


     


文章来源:http://www.bozhiyue.com/web/yuyan/2016/0825/433348.html
返回上一页    返回分类 上一篇:   下一篇:
相关