stream Questions

1

Solved

Is there any way I can clone values for the async move closures for futures::stream? I'm using future's for_each_concurrent My code is something like this: async fn foo() { use futures::stream::{s...
Marsha asked 1/3, 2021 at 21:0

5

Solved

ifstream f; f.open(fileName); if ( f.fail() ) { // I need error message here, like "File not found" etc. - // the reason of the failure } How to get error message as string?
Finesse asked 27/6, 2013 at 7:51

13

Solved

Is there an easy way to avoid dealing with text encoding problems?
Heavierthanair asked 15/9, 2008 at 11:51

0

I'm trying to build a streaming library using the abstractions described in the paper "Faster coroutine pipelines". I've modified the code so that it correctly handles pipeline exiting (i...
Jillion asked 14/2, 2021 at 7:16

6

Solved

Alright, I've googled getting a string from Serial with Arduino and I've had no luck even copy and pasting examples. I'm trying to get a string from the Serial. Here's my code: void setup() { Se...
Workhouse asked 28/3, 2012 at 4:15

3

Solved

To measure position/offsets/size of streams, the standard specify std::streampos, std::streamoff and std::streamsize, but they are implementation defined. How to convert these types to long long ...
Jimenez asked 8/10, 2012 at 0:29

2

Solved

I have a problem with recording rtsp stream with VLC player. Actually my method works in MacOS X, but doesn't in Windows. Command line: vlc -vvv rtsp://admin:[email protected]/live/h264/ --so...
Polestar asked 12/2, 2013 at 8:28

2

I want to append lines to a file, which is a writeable stream, in Node, in a specific order, through a loop. Here is a simplified version of what I am talking about: var fs = require('fs'); var o...
Ellipticity asked 18/11, 2015 at 3:27

1

Solved

I was testing streams with node and I setup a program to read a large file and write it again using streams. The problem is when running the program, memory usage of node goes up to 1.3 GB, which i...
Repress asked 31/1, 2021 at 21:2

7

Solved

I often run into the problem that I have one stream full of data and want to write everything of it into another stream. All code-examples out there use a buffer in form of a byte-array. Is there...
Unicuspid asked 24/9, 2008 at 19:25

2

Solved

I have to be able to stream large files from our Rest API using RestSharp. The canonical way of doing so is to set the 'ResponseWriter' property on the request: var client = new RestClient var req...
Roley asked 15/7, 2015 at 23:44

2

I'm trying to parse my json with the code below. I get the error: Error reading JObject from JsonReader. Path '', line 0, position 0. I thought this might be because my JSON was malformed, s...
Barye asked 2/7, 2019 at 10:53

2

Solved

If I have a remote mp4 file on a server that supports Byte Ranges, is it possible to retrieve a single byte range and create a new/self-contained mp4 from that range data? If I try and write a ret...
Boil asked 18/4, 2014 at 20:32

2

I have a MemoryStream with the contents of a Font File (.ttf) and I would like to be able to create a FontFamily WPF object from that stream WITHOUT writing the contents of the stream to disk. I kn...
Sessoms asked 4/9, 2008 at 18:25

3

Solved

I am trying Get an object from Amazon S3 storage in Node.Js. And this perfectly works when I am saving it to a file. amazon.getObject = function () { var options = { BucketName : 'mybucket', ...
Palaeozoic asked 31/12, 2012 at 0:20

2

Solved

I have a use case where many clients need to keep sending a lot of metrics to the server (almost perpetually). The server needs to store these events, and process them later. I don't expect any kin...
Teaspoon asked 26/6, 2019 at 6:57

7

Solved

In Java, flush() method is used in streams. But I don't understand what are all the purpose of using this method? fin.flush(); tell me some suggestions.
Joinder asked 26/2, 2010 at 7:35

2

Solved

When I have uploaded an image from my website I need to do 2 things: read the image dimensions save the image to the database the first thing I do is reading the image stream into an Image obj...
Reynaud asked 24/11, 2010 at 11:56

2

Solved

The standard advice on determine whether you need to wait for drain event on process.stdout is to check whether it returns false when you write to it. How should I check if I've piped another stre...
Leggett asked 17/10, 2015 at 19:1

3

Solved

I found two different ways to pipe streams in node.js Well known .pipe() method of a stream https://nodejs.org/api/stream.html#stream_readable_pipe_destination_options and standalone function for s...
Schizopod asked 15/11, 2019 at 11:2

1

I am developing a Flutter app using Provider (provider: 3.0.0+1). I am using MultiProvider using StreamProvider with controller. But I am always getting an error. Below is my code main.dart Widg...
Betseybetsy asked 31/7, 2019 at 2:11

2

Solved

Some operations to read and write from streams may set the error flag in a stream, which can be tested using ferror(stream), while I'm quite sure this must be a frequently asked question, I wasn't ...
Yowl asked 12/4, 2012 at 14:1

5

Solved

I make an app using firestore and a bottom navigation bar in Flutter. The problem is that when I switch between tabs, the build method is called everytime. The build method downloads data from fire...
Agueda asked 20/12, 2018 at 14:23

1

Solved

I cannot use StreamGroup or StreamZip for some reason here's the code (that is complete useless, but I don't want to anger the admins) import 'dart:async'; import 'package:flutter/material.dart'; ...
Lazaro asked 20/11, 2020 at 14:50

7

I am about to write a message protocol going over a TCP stream. The receiver needs to know where the message boundaries are. I can either send 1) fixed length messages, 2) size fields so the rece...
Dziggetai asked 25/6, 2009 at 23:5

© 2022 - 2024 — McMap. All rights reserved.