Classes
Methods
(static) RecordParser.newDelimited(delim, stream) → {RecordParser}
Like RecordParser#newDelimited but wraps the
stream. The stream handlers will be set/unset
when the RecordParser#handler is set.
The pause()/resume() operations are propagated to the stream.
Parameters:
| Name | Type | Description |
|---|---|---|
delim |
Buffer | the initial delimiter buffer |
stream |
ReadStream | the wrapped stream |
- Source:
Returns:
- Type
- RecordParser
(static) RecordParser.newFixed(size, stream) → {RecordParser}
Like RecordParser#newFixed but wraps the
stream. The stream handlers will be set/unset
when the RecordParser#handler is set.
The pause()/resume() operations are propagated to the stream.
Parameters:
| Name | Type | Description |
|---|---|---|
size |
number | the initial record size |
stream |
ReadStream | the wrapped stream |
- Source:
Returns:
- Type
- RecordParser