From 0ae46a7a862e26ccd611aed4d189a5e480639a4c Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sun, 21 Apr 2019 13:47:30 +0800 Subject: 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 Reviewed-By: James M Snell --- src/node_http2_state.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/node_http2_state.h') 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 root_buffer; - AliasedBuffer session_state_buffer; - AliasedBuffer stream_state_buffer; - AliasedBuffer stream_stats_buffer; - AliasedBuffer session_stats_buffer; - AliasedBuffer padding_buffer; - AliasedBuffer options_buffer; - AliasedBuffer 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 { -- cgit v1.2.3