Click here to Skip to main content
15,884,298 members
Everything / Buffer

Buffer

buffer

Great Reads

by honey the codewitch
A circular buffer implementing IList
by Oscar-Tark
A basic formatted string exploit shows you how small errors in programming with the printf function can be a lethal weapon for hackers looking to compromise a system.
by ToughDev
How to convert between NSString and C strings in iOS project
by Asif Bahrainwala
HPC via Compute Shaders (GPGPU).

Latest Articles

by ToughDev
How to convert between NSString and C strings in iOS project
by Oscar-Tark
A basic formatted string exploit shows you how small errors in programming with the printf function can be a lethal weapon for hackers looking to compromise a system.
by honey the codewitch
A circular buffer implementing IList
by Asif Bahrainwala
HPC via Compute Shaders (GPGPU).

All Articles

Sort by Score

Buffer 

6 Feb 2020 by honey the codewitch
A circular buffer implementing IList
29 Feb 2020 by Oscar-Tark
A basic formatted string exploit shows you how small errors in programming with the printf function can be a lethal weapon for hackers looking to compromise a system.
8 Jul 2020 by OriginalGriff
Use C library function - fseek() - Tutorialspoint[^] But how many times have we told you now that you are doing this the wrong way?
31 Mar 2021 by Richard MacCutchan
Quote: JavaScript stores dates as number of milliseconds since January 01, 1970, 00:00:00 UTC (Universal Time Coordinated). So you need to subtract the number of ticks between Jan 1 0000 and Jan 1 1970 and then convert the result into...
15 Jun 2021 by OriginalGriff
From the source: Online C11 standard, 7.21.3/3[^]: When a stream is fully buffered, characters are intended to be transmitted to or from the host environment as a block when a buffer is filled. Basically, with a fully buffered stream the source...
15 Sep 2023 by Richard MacCutchan
Try this: #include #include DWORD waitThread(HANDLE hThread) { DWORD dwTimeOut{ 10000 }; const char* emsg{}; switch (WaitForSingleObject(hThread, dwTimeOut)) { case WAIT_OBJECT_0: return...
7 Jan 2020 by dwk00
I created a TCP Audio Chat(Basic) ... It works for about 1 second, then it say buffer full I wish to use this as a tablet to front Door tablet Intercom Server WaveIn waveIn = new WaveIn(); // int deviceID = Cmb_InputDevices.SelectedIndex; waveIn.BufferMilliseconds = 50; waveIn.DeviceNumber =...
5 May 2020 by Member 10587461
Hello Team, In my SQL Server production server, The SQL instance contains different databases. I have ran through the query and collected the "buffer cache used space" and "buffer cache free space" in all the databases. Some of the database...
5 May 2020 by RickZeeland
See: Different Ways to Flush or Clear SQL Server Cache[^]
8 Jul 2020 by Daniel Pfeffer
One way would be to overlap the existing buffer with the next buffer. If you know that the phrase that you are looking for is of length N, when reaching the end of the buffer you copy the last N-1 characters from the end of the buffer to the...
8 Jul 2020 by Richard MacCutchan
You could get the size of the file (from fseek/ftell) and allocate a buffer large enough for the entire file. Then read the it into memory and search that way. Alternately, if it is a proper text file, read it line by line, making sure that the...
9 Jan 2021 by Muhammedcan Pirinççi
Let's say I have 3 kinds of bakery shops.I wanna have a buffer for each one of them.With that way i can control producing-consuming for each bakery shops. How can I implement it to c language with Pthreads? Thanks in advance What I have tried:...
9 Jan 2021 by KarstenK
at first you must learn and understand the basic of C and multi-threading is an advanced theme. Looks like soome pthread tutorial. You can imagine it as some persons are in the kitchen and are cooking together. The biggest problem is to explain...
31 Mar 2021 by zeeShan anSari
Hello, Can someone tell me how to convert DateTime64(6,UTC) into Date or readable string in javascript. Let's suppose I have Int64 value 637453206453037910 (precision 6, UTC) so how to convert 637453206453037910 in the proper datetime string....
15 Jun 2021 by surajgirioffl
I am reading about stream and buffer in C Language. I got that if stream is line buffered then the accumulated characters of buffer get transferred in the from of block whenever the newline character encounter. and if stream is unbuffered then...
8 May 2023 by ToughDev
How to convert between NSString and C strings in iOS project
14 Sep 2023 by Rick York
Your thread procedure is trying to read 250 characters but your primary thread expects just one and waitThread is going to wait for the thread procedure to terminate which requires 250 characters. I think you really want to have ReadFile wait...
14 Sep 2023 by RexyCode
I am currently working on an idle timer that is designed to handle multiple I/O operations, and I partially made it work. However, I am encountering issues with the loop functionality; it tends to either enter an infinite loop (if I remove the...
22 Feb 2013 by Asif Bahrainwala
HPC via Compute Shaders (GPGPU).
7 Jan 2020 by User 11060979
Based on the information you gave, it is hard to help. But anyway I see at least two problems: 1.) For audio streaming I would use UDP instead of TCP. 2.) Client 2.a) The while loop in your client is/can be a havy load for cpu, you should replace it by event based code. Means when something...
9 Jan 2021 by CPallini
You may find (just Google for) many pthread code samples about the producer-consumer problem. They could be your starting point.
8 Jul 2020 by Sharon Shelton
I'm using a buffer to temporarily store a certain bytes of data(characters) from a file. I just want to find out whether a particular word is present in the file. Let's say, I'm searching for a word 'Apple' and I'm storing a string from the file...