diff options
Diffstat (limited to 'erts/preloaded/src/prim_buffer.erl')
-rw-r--r-- | erts/preloaded/src/prim_buffer.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/preloaded/src/prim_buffer.erl b/erts/preloaded/src/prim_buffer.erl index e0d35a6792..7ee2975333 100644 --- a/erts/preloaded/src/prim_buffer.erl +++ b/erts/preloaded/src/prim_buffer.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2017. All Rights Reserved. +%% Copyright Ericsson AB 2017-2022. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -34,6 +34,9 @@ -export([try_lock/1, unlock/1]). +-nifs([new/0, size/1, peek_head/1, copying_read/2, write/2, skip/2, + find_byte_index/2, try_lock/1, unlock/1]). + -type prim_buffer() :: term(). %% Controls when to copy rather than extract sub-binaries from the buffer, @@ -106,7 +109,7 @@ skip(_Buffer, _Size) -> wipe(Buffer) -> skip(Buffer, prim_buffer:size(Buffer)). -%% Finds the start-index of the first occurence of Needle, for implementing +%% Finds the start-index of the first occurrence of Needle, for implementing %% read_line and similar. -spec find_byte_index(Buffer, Needle) -> Result when Buffer :: prim_buffer(), |