| 33 | } |
| 34 | |
| 35 | static Value GetUint16(const CallbackInfo& info) { |
| 36 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |
| 37 | return Number::New(info.Env(), info[0].As<DataView>().GetUint16(byteOffset)); |
| 38 | } |
| 39 | |
| 40 | static Value GetUint32(const CallbackInfo& info) { |
| 41 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |