isBufferableInputSource

Defines the 'bufferable' input sources supported by inputSourceByChunk.

This includes std.stdio.File objects and mutable dynamic ubyte arrays (inputRange with slicing).

Note: The mutable, dynamic arrays restriction is based on what is supported by std.range.chunks. This could be extended to include any type of array with ubyte elements, but it would require custom code in inputSourceByChunk. A test could be added as '(isArray!(R) && is(Unqual!(typeof(R.init[0])) == ubyte))'.

enum bool isBufferableInputSource(R);

Meta