Support externalized ArrayBuffer for node::Buffer
This commit is contained in:
parent
8cc1046992
commit
0a4fb2ec4f
4 changed files with 86 additions and 39 deletions
15
atom/renderer/node_array_buffer_bridge.h
Normal file
15
atom/renderer/node_array_buffer_bridge.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright (c) 2015 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_RENDERER_NODE_ARRAY_BUFFER_BRIDGE_H_
|
||||
#define ATOM_RENDERER_NODE_ARRAY_BUFFER_BRIDGE_H_
|
||||
|
||||
namespace atom {
|
||||
|
||||
// Override Node's ArrayBuffer with DOM's ArrayBuffer.
|
||||
void OverrideNodeArrayBuffer();
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_RENDERER_NODE_ARRAY_BUFFER_BRIDGE_H_
|
Loading…
Add table
Add a link
Reference in a new issue