| 18 | } |
| 19 | |
| 20 | static Value GetInt16(const CallbackInfo& info) { |
| 21 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |
| 22 | return Number::New(info.Env(), info[0].As<DataView>().GetInt16(byteOffset)); |
| 23 | } |
| 24 | |
| 25 | static Value GetInt32(const CallbackInfo& info) { |
| 26 | size_t byteOffset = info[1].As<Number>().Uint32Value(); |