Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
process
MultiRingBuffer
Class MultiRingBuffer
Hierarchy
MultiRingBuffer
Implements
Disposable
Index
Constructors
constructor
Properties
buffer
encoding
head
max
Size
options
reader
Id
readers
streams
tail
Methods
close
Reader
close
Stream
deq
dispose
empty
empty
For
Reader
enq
get
Reader
get
Stream
inc
inc
Tail
inc
Tail
Size
inc
Tails
is
Wrapped
on
Data
readers
Size
should
Inc
Pos
size
size
For
Reader
size
From
streams
Size
Constructors
constructor
new
Multi
Ring
Buffer
(
options
:
MultiRingBufferOptions
)
:
MultiRingBuffer
Parameters
options:
MultiRingBufferOptions
Returns
MultiRingBuffer
Properties
Protected
Readonly
buffer
buffer
:
Buffer
Protected
Readonly
encoding
encoding
:
BufferEncoding
Protected
head
head
:
number
= -1
Protected
Readonly
max
Size
max
Size
:
number
Protected
Readonly
options
options
:
MultiRingBufferOptions
Protected
reader
Id
reader
Id
:
number
= 0
Protected
Readonly
readers
readers
:
Map
<
number
,
number
>
Protected
Readonly
streams
streams
:
Map
<
MultiRingBufferReadableStream
,
number
>
Protected
tail
tail
:
number
= -1
Methods
close
Reader
close
Reader
(
id
:
number
)
:
void
Parameters
id:
number
Returns
void
close
Stream
close
Stream
(
readableStream
:
MultiRingBufferReadableStream
)
:
void
Parameters
readableStream:
MultiRingBufferReadableStream
Returns
void
deq
deq
(
id
:
number
, size
?:
number
, encoding
?:
BufferEncoding
)
:
undefined
|
string
Parameters
id:
number
size:
number
= -1
encoding:
BufferEncoding
= 'utf8'
Returns
undefined
|
string
dispose
dispose
(
)
:
void
Dispose all the attached readers/streams.
Returns
void
empty
empty
(
)
:
boolean
Returns
boolean
empty
For
Reader
empty
For
Reader
(
id
:
number
)
:
boolean
Parameters
id:
number
Returns
boolean
enq
enq
(
str
:
string
, encoding
?:
string
)
:
void
Parameters
str:
string
encoding:
string
= 'utf8'
Returns
void
get
Reader
get
Reader
(
)
:
number
Returns
number
get
Stream
get
Stream
(
encoding
?:
BufferEncoding
)
:
MultiRingBufferReadableStream
Parameters
Optional
encoding:
BufferEncoding
Returns
MultiRingBufferReadableStream
Protected
inc
inc
(
pos
:
number
, size
:
number
)
:
WrappedPosition
Parameters
pos:
number
size:
number
Returns
WrappedPosition
Protected
inc
Tail
inc
Tail
(
pos
:
number
, size
:
number
)
:
WrappedPosition
Parameters
pos:
number
size:
number
Returns
WrappedPosition
Protected
inc
Tail
Size
inc
Tail
Size
(
pos
:
number
, head
:
number
, size
:
number
)
:
WrappedPosition
Parameters
pos:
number
head:
number
size:
number
Returns
WrappedPosition
Protected
inc
Tails
inc
Tails
(
size
:
number
)
:
void
Parameters
size:
number
Returns
void
Protected
is
Wrapped
is
Wrapped
(
from
:
number
, to
:
number
)
:
boolean
Parameters
from:
number
to:
number
Returns
boolean
Protected
on
Data
on
Data
(
start
:
number
)
:
void
Parameters
start:
number
Returns
void
readers
Size
readers
Size
(
)
:
number
Returns
number
Protected
should
Inc
Pos
should
Inc
Pos
(
pos
:
number
, end
:
number
, size
:
number
)
:
boolean
Parameters
pos:
number
end:
number
size:
number
Returns
boolean
size
size
(
)
:
number
Returns
number
size
For
Reader
size
For
Reader
(
id
:
number
)
:
number
Parameters
id:
number
Returns
number
Protected
size
From
size
From
(
from
:
number
, to
:
number
, wrap
:
boolean
)
:
number
Parameters
from:
number
to:
number
wrap:
boolean
Returns
number
streams
Size
streams
Size
(
)
:
number
Returns
number
Modules
bulk-
edit
callhierarchy
console
core
debug
editor
editor-
preview
electron
external-
terminal
file-
search
filesystem
getting-
started
git
keymaps
markers
memory-
inspector
messages
metrics
mini-
browser
monaco
navigator
outline-
view
output
plugin
plugin-
dev
plugin-
ext
plugin-
ext-
vscode
plugin-
metrics
preferences
preview
process
property-
view
scm
scm-
extra
search-
in-
workspace
secondary-
window
task
terminal
timeline
toolbar
typehierarchy
userstorage
variable-
resolver
vsx-
registry
workspace
Multi
Ring
Buffer
constructor
buffer
encoding
head
max
Size
options
reader
Id
readers
streams
tail
close
Reader
close
Stream
deq
dispose
empty
empty
For
Reader
enq
get
Reader
get
Stream
inc
inc
Tail
inc
Tail
Size
inc
Tails
is
Wrapped
on
Data
readers
Size
should
Inc
Pos
size
size
For
Reader
size
From
streams
Size
Dispose all the attached readers/streams.