Skip to content

Commit 917e816

Browse files
committed
buffer: rename helper method
1 parent 555deba commit 917e816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_buffer.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ void CopyArrayBuffer(const FunctionCallbackInfo<Value>& args) {
14491449
memcpy(dest, src, bytes_to_copy);
14501450
}
14511451

1452-
std::pair<void*, size_t> DecomposeSourceToParts(Local<Value> source) {
1452+
std::pair<void*, size_t> DecomposeBufferToParts(Local<Value> source) {
14531453
void* pointer;
14541454
size_t byte_length;
14551455

@@ -1488,11 +1488,11 @@ void StaticCopy(const FunctionCallbackInfo<Value>& args) {
14881488

14891489
void* source_data;
14901490
size_t source_byte_length;
1491-
std::tie(source_data, source_byte_length) = DecomposeSourceToParts(source);
1491+
std::tie(source_data, source_byte_length) = DecomposeBufferToParts(source);
14921492

14931493
void* target_data;
14941494
size_t target_byte_length;
1495-
std::tie(target_data, target_byte_length) = DecomposeSourceToParts(target);
1495+
std::tie(target_data, target_byte_length) = DecomposeBufferToParts(target);
14961496

14971497
size_t target_start = static_cast<size_t>(args[2].As<Number>()->Value());
14981498
size_t source_start = static_cast<size_t>(args[3].As<Number>()->Value());

0 commit comments

Comments
 (0)