This class represents general abstract filter objects.
final void write(const(ubyte)[] input);
Write a portion of a message to this filter.
- Parameters
const(ubyte)[] input |
the input as a ubyte array |
void send(const(ubyte)* input, size_t length);
- Parameters
const(ubyte)* input |
some input for the filter |
size_t length |
the length of in |
final void send(ubyte input);
- Parameters
ubyte input |
some input for the filter |
final void send(ALLOC)(auto ref const Vector!(ubyte, ALLOC) input);
- Parameters
Vector!(ubyte, ALLOC) input |
some input for the filter |
final void send(ALLOC)(auto ref const RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input);
- Parameters
RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input |
some input for the filter |
final void send(ALLOC)(auto ref const Vector!(ubyte, ALLOC) input, size_t length);
- Parameters
Vector!(ubyte, ALLOC) input |
some input for the filter |
size_t length |
the number of bytes of in to send |
final void send(ALLOC)(auto ref const RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input, size_t length);
- Parameters
RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input |
some input for the filter |
size_t length |
the number of bytes of in to send |
Start a new message in this and all following filters. Only for
internal use, not intended for use in client applications.
End a new message in this and all following filters. Only for
internal use, not intended for use in client applications.
Set the active port
- Parameters
size_t new_port |
the new value |
void attach(Filter new_filter);
Attach another filter to this one
- Parameters
Filter new_filter |
filter to attach |
void setNext(Filter* filters, size_t size);
- Parameters
Filter* filters |
the filters to set |
size_t size |
number of items in filters |
This is the abstract FanoutFilter base class.
Increment the number of filters past us that we own
The type of checking to be performed by decoders:
NONE - no checks, IGNORE_WS - perform checks, but ignore
whitespaces, FULL_CHECK - perform checks, also complain
about white spaces.