| 23 | } |
| 24 | |
| 25 | static Value GetInt32(const CallbackInfo& info) { |
| 26 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |
| 27 | return Number::New(info.Env(), info[0].As<DataView>().GetInt32(byteOffset)); |
| 28 | } |
| 29 | |
| 30 | static Value GetUint8(const CallbackInfo& info) { |
| 31 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |