| 28 | } |
| 29 | |
| 30 | static Value GetUint8(const CallbackInfo& info) { |
| 31 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |
| 32 | return Number::New(info.Env(), info[0].As<DataView>().GetUint8(byteOffset)); |
| 33 | } |
| 34 | |
| 35 | static Value GetUint16(const CallbackInfo& info) { |
| 36 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |