Questions tagged [buffer]
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 before the device is ready to accept it, so it is moved to the buffer so that the sending program does not have to continue waiting.
buffer
7,112
questions
0
votes
0
answers
6
views
POSTGRESQL caching and buffer
Welp. Im currently an intern now, and my team lead asked me stuff about PostgreSQL which in all honesty I don't have any idea as of now. I'm willing to learn about it, it's just I need more time to ...
-1
votes
0
answers
18
views
In vimdiff, how can I shift-v (select entire line) in both buffers?
I want to to be able to to select across buffers in vimdiff. Is there a way to do this?
For instance, I want to be able to shift-v on both documents, and show the highlighted lines across both ...
1
vote
1
answer
65
views
Why does printf flush or not flush depending on where the line is in a loop?
Why, in this program, does the printf function print or not print depending on where it is inside the loop?
#include <stdio.h>
#include <time.h>
int main()
{
char frames[] = {'-',...
1
vote
1
answer
24
views
How to perform a find-replace operation from the cursor position to EOF
How to perform a find-replace operation in Neovim from the cursor position to the end of the file (EOF), as Ex command
:%s/Hi/Hello/g
will write entire document file instead of from current cursor ...
1
vote
1
answer
63
views
BufReader Issues with Inconsistent Reads Across Multiple Buffer Sizes
I'm facing an issue with BufReader in Rust when attempting to read data into two separate temporary buffers under different conditions.
Below is a breakdown along with the added code.
First Buffer ...
0
votes
0
answers
22
views
zookeeper large memory size
I have a zk cluster set up , however, I ran into errors:
in zookeeper.properties, I have jute.maxbuffer=1073741824
But in zk logs during start up, I've got
2024-07-09 14:12:58,105 [myid:] - INFO [...
0
votes
1
answer
35
views
How does the socket buffer work in Linux?
I'm using python TCP server, and the clients will just send data to the server via sockets. In Linux, there are the buffer size defined for TCP. So does that mean when the client writes to the socket, ...
0
votes
0
answers
27
views
Byte order from Modbus request
I'm trying to read out a Modbus register over TCP, which seems to be working fine, however the response and the byte order are not making sense to me. I'm using JavaScript and the jsModbus library to ...
0
votes
1
answer
41
views
Vulkan StagingBuffer Alignment
Lets say that I have different types of data like vertices, indices... and I want to transfer them by using just one staging buffer. Does buffer alignment cause problem, do I have to check whether ...
1
vote
1
answer
75
views
How to count the number of bytes read from bufio.Reader in Golang
I open a file and read from it using bufio.Reader like so
file, err := os.Open(filepath)
if err != nil {
return nil, err
}
utf16bom := unicode.UTF16(unicode.LittleEndian, unicode....
0
votes
0
answers
57
views
SLURM maximum buffer size
In the slurmctld.log I have this error
error: Configured MaxJobCount may lead to job_state being larger then
maximum buffer size and not saved, based on the average job state
size(2.34 KiB) we can ...
0
votes
2
answers
74
views
How to implement Display trait for PathBuf
I was working with a library's function which accepts any values with a Display trait this is a problem because PathBuf wasn't implemented with Display trait.
This is my code:
//library: inquire
fn ...
0
votes
0
answers
64
views
DataByte to List<int> using map function?
I have a buffer byteBuffer in ByteData format that is 500 bytes long. It's a list of 250 Uint16 values. I can convert it to List using a loop with the following code (and it works).
List<int> ...
0
votes
0
answers
45
views
Convert image to buffer chunks - react native
I need to generate buffer of a chunk from an image path in react. Buffer format server is expecting is as follows:
<Buffer 64 61 74 61 3a 69 6d 61 67 65 2f 6a 70 65 67 3b 62 61 73 65 36 34 2c 2f 39 ...
0
votes
0
answers
21
views
Upload ffmpeg output to S3
When I make the next upload, if the duration of the clip is very short it generates a corrupt file and if it is a little longer, for example 19 seconds, it generates a file that starts from second 8
...