asRamFile static method
Implementation
static Future<InputFileStream> asRamFile(
Stream<Uint8List> stream,
int fileLength, {
int byteOrder = LITTLE_ENDIAN,
int bufferSize = FileBuffer.kDefaultBufferSize,
}) async {
return InputFileStream.withFileBuffer(
FileBuffer(await RamFileHandle.fromStream(stream, fileLength)),
byteOrder: byteOrder,
bufferSize: bufferSize,
);
}