A buffer is an area of memory set aside for temporary storage of data while it is being moved from one place to another. This is typically done to speed up processes with significant latency, such as writing to a disk, printer or other physical device. The output is ready to be sent to the device ...
0
votes
2answers
12 views
ob_start gets interrupted when error occur
So ob_start() is supposed to capture output until another buffer function is called like ob_get_clean(), ob_get_contents(), ob_get_flush().
But when an exception is thrown inside the buffer reader it ...
0
votes
1answer
59 views
C# string array buffer
I am building an application for my brother that takes string input form an external source, GPS plotter, which I would like to display in a multiline textbox. If someone were to leave this ...
0
votes
5answers
49 views
Making two windows with separate files(?) in gvim
I'm a beginner vi user. I don't know the terminology, but I want to split my gvim terminal(screen?) into 2 windows which each have 5 different files(buffers?). I can open the first 5 files in one ...
0
votes
1answer
81 views
Trying to extract json data, geting expected string or buffer
So I'm experimenting with json abit and this is the code I've got this far,
import json
from utorrent.client import UTorrentClient
uTorrent = UTorrentClient("xxxx", "xxxx", "xxxx")
data = ...
3
votes
2answers
4k views
NodeJS: What is the proper way to handling TCP socket streams ? Which delimiter should I use?
From what I understood here, "V8 has a generational garbage collector. Moves objects aound randomly. Node can’t get a pointer to raw string data to write to socket." so I shouldn't store data that ...
0
votes
0answers
56 views
how to change read buffer size of linux serial line?
init question and older discussion here: http://pastebin.com/GzsHhBs3
EDIT/append3:
VTIME seems to work correctly:
while opening the serial port, i set
serial_opts.c_cc[VTIME]=60; //6 seconds
...
0
votes
1answer
8 views
Flex input buffer reset after error
I'm using flex & bison to parse a custom language and I'm in the situation described here: http://www.gnu.org/software/bison/manual/html_node/How-Can-I-Reset-the-Parser.html.
To be more precise
...
0
votes
6answers
2k views
How to determine the size of an allocated C buffer?
I have a buffer and want to do a test to see if the buffer has sufficient capacity I.e. find number of elements I can add to the buffer.
char *buffer = (char *)malloc(sizeof(char) * 10);
Doing a
...
0
votes
2answers
64 views
what happens to the value returned by 'createBufferStrategy'?
I'm learning about BufferStrategy and I'm kind of confused with the creation of BS.
my code looks like this...
public class Game extends Canvas{
/*code not relevant to this topic..
...
0
votes
0answers
5 views
Find overflowing buffers
So I have used both the XEN and OpenVZ systems before. Companies usually set higher buffer value limits on OpenVZ systems so they don't actually overflow. Some of those values are visible in ...
0
votes
2answers
56 views
Efficient means of null terminating an unsigned char buffer in a string append function?
I've been writing a "Byte Buffer" utility module - just a set of functions for personal use in low level development.
Unfortunately, my ByteBuffer_Append(...) function doesn't work properly when it ...
1
vote
1answer
41 views
Clear Datagram Buffer in Java
So I got this simple udp client/server code from the internet, and it works. However, when I enter something that is shorter than the thing I entered before it, I get the remaining characters left ...
8
votes
2answers
5k views
AudioTrack lag: obtainBuffer timed out
I'm playing WAVs on my Android phone by loading the file and feeding the bytes into AudioTrack.write() via the FileInputStream > BufferedInputStream > DataInputStream method. The audio plays fine and ...
0
votes
1answer
9 views
python: Given a BytesIO buffer, generate img tag in html?
Is it possible to generate a functional image tag in html from a BytesIO buffer? I'd like to do something along these lines:
import matplotlib
matplotlib.use('Agg')
import pylab
import Image
import ...
0
votes
1answer
15 views
DirectX 11 indexed drawing with normals
I am working on a OBJ loader for DirectX 11.
In OBJ Format a square (two triangles) would look like this:
v 0 0 0
v 0 1 0
v 1 1 0
v 1 0 0
f 1 2 3
f 1 3 4
So at first the vertex data is given by v ...