diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-21 13:47:30 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-26 14:23:31 +0800 |
commit | 0ae46a7a862e26ccd611aed4d189a5e480639a4c (patch) | |
tree | 9b37a35a1e512b1c09c6e8f45ab3a45d3e67c43b /src/node_http2_state.h | |
parent | 5fe4d5966fd9c2b30b3da3ec7cb47132aa8cdfdd (diff) | |
download | android-node-v8-0ae46a7a862e26ccd611aed4d189a5e480639a4c.tar.gz android-node-v8-0ae46a7a862e26ccd611aed4d189a5e480639a4c.tar.bz2 android-node-v8-0ae46a7a862e26ccd611aed4d189a5e480639a4c.zip |
src: use predefined AliasedBuffer types in the code base
Instead of allowing the callers to instantiate the template
with any numeric types (such as aliasing a Uint8Array to double[]),
predefine types that make sense and use those instead.
PR-URL: https://github.com/nodejs/node/pull/27334
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_http2_state.h')
-rw-r--r-- | src/node_http2_state.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/node_http2_state.h b/src/node_http2_state.h index d21d0f9009..692299a187 100644 --- a/src/node_http2_state.h +++ b/src/node_http2_state.h @@ -128,14 +128,14 @@ class Http2State { root_buffer) { } - AliasedBuffer<uint8_t, v8::Uint8Array> root_buffer; - AliasedBuffer<double, v8::Float64Array> session_state_buffer; - AliasedBuffer<double, v8::Float64Array> stream_state_buffer; - AliasedBuffer<double, v8::Float64Array> stream_stats_buffer; - AliasedBuffer<double, v8::Float64Array> session_stats_buffer; - AliasedBuffer<uint32_t, v8::Uint32Array> padding_buffer; - AliasedBuffer<uint32_t, v8::Uint32Array> options_buffer; - AliasedBuffer<uint32_t, v8::Uint32Array> settings_buffer; + AliasedUint8Array root_buffer; + AliasedFloat64Array session_state_buffer; + AliasedFloat64Array stream_state_buffer; + AliasedFloat64Array stream_stats_buffer; + AliasedFloat64Array session_stats_buffer; + AliasedUint32Array padding_buffer; + AliasedUint32Array options_buffer; + AliasedUint32Array settings_buffer; private: struct http2_state_internal { |