Questions tagged as 'buffer'

1
answer

What is an "output_buffer"?

Reading is answer , this question came to me. What is a output_buffer ?     
asked by 17.02.2017 / 19:47
0
answers

How to convert "arraybuffer" to "string" and vice versa?

I'm making a mobile app in HTML5 and need to store data from MP3 files and bitmap images in localStorage. The problem is that you only have to store String so I need to convert a buffer to String to stock and then the opposite to retrieve. I...
asked by 29.03.2015 / 21:26
1
answer

How do I use fgets instead of gets?

Before "talking" about my problem, first look at my code and ignore the accentuation errors in the console if it is to execute. #include <stdio.h> #include <stdlib.h> #include <string.h> main(){ char nome[41]; printf("Tex...
asked by 03.09.2016 / 15:17
4
answers

Buffer Cleanup after getchar

Good morning, I wanted to know how I can optimize buffer cleaning when using the getchar () function, as an example follow the following codes: I get the following code from the correct output using the "scanf spacing" technique as shown:...
asked by 11.12.2014 / 18:03
0
answers

OpenCV '' Circular buffer overrun '' Stream UDP

I'm trying to capture a video and run it in an OpenCV code, but after a few seconds the video hangs and this error appears: [udp @ 0x1a2d020] Circular buffer overrun. To avoid, increase fifo_size URL option. To survive in such case, use overru...
asked by 11.03.2018 / 20:44
1
answer

Client Java Server Application is looped

I am developing a system for reinforcement school functions. The moment I went to implement my class that does the data encryption I needed to change also the type of data that will traffic between client and server from String to Byte. I alread...
asked by 21.02.2018 / 17:05
0
answers

Avoid memory overflow in a PHP function

Galera, I'm debuting here and I have the following problem: I created a function with a hint that I found right here in stackoverflow. function DozenGenerate($game,$dozen) { $this->game = $game; $this->dozen = $dozen; if ($ga...
asked by 29.12.2017 / 09:04
0
answers

Read Integer with BufferedReader on Android

In an Android Application, I have a socket client java that sends integers (using writeInt) to a socket server on Android that I am trying to read these integers. I get strings correctly but can not convert when using parseInt, Here and Here...
asked by 06.10.2017 / 03:27
1
answer

Transferring image via socket, the image turns black

My server sends a command to the client and the client sends a PrintScreen to the server using this code: Image printScreen = new Bitmap(monitorWidth, monitorHeight); Graphics graphics = Graphics.FromImage(printScreen); graphics.CopyFromScreen...
asked by 31.08.2016 / 21:22
1
answer

error while trying editText.setSelection

I am trying to apply a mask in my EditText, however when I try to enter a value beyond what is allowed I get the error: 05-20 17:17:23.943: E/AndroidRuntime(1399): FATAL EXCEPTION: main 05-20 17:17:23.943: E/AndroidRuntime(1399): java.lang.Ind...
asked by 20.05.2014 / 19:26