Tagged Questions
1
vote
0answers
27 views
Android Bluetooth Java, Constant bluetooth stream to fill up array and write to sdcard
I am writing an Android app that uses bluetooth to stream data (bytes) into an array in another class. The idea behind this is to record a set amount of data (i.e. buffer[60000]) and when it is full, ...
0
votes
2answers
64 views
Byte array with padding of null bytes at the end: how to efficiently copy to smaller byte array
Have:
[46][111][36][11][101][55][87][30][122][75][66][32][49][55][67][77][88][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0]
Want:
...
1
vote
3answers
43 views
Javascript: shift a bidimensional array
I created an array of samples in the following way:
var data = new Array(8);
...
data[n].push([x, y]);
where n is the channel (0-7) and [x, y] the current sample of the selected channel.
For a ...
2
votes
1answer
26 views
Retrieve Array compressed by BlockCopy
I have two kinds of List: a list with int elements and other with bool elements. To pass these lists to server, I have to do what I did below:
using(MemoryStream m = new MemoryStream()){
...
-2
votes
1answer
103 views
OpenCV - Array of Images, or Buffer of Mat
How, can I have a buffer or array of images "Mat" with OpenCV?
I mean:
Mat images;
images[0] = imread(...)
images[1] = imread(..)
etc...
How can I do this?
3
votes
1answer
60 views
OpenGL Vertex and Buffers
I have been developing an application in which i read from a txt file a couple of points, and i need to create a line graph to display the points.
I'm using glDrawElements,with an array of points and ...
0
votes
1answer
30 views
C++ : how do I convert a char array into a buffer for general types T
My assignment is to make a buffer in a template for general types T. I'm given an allocated array of chars and I'm supposed to turn that into a buffer without using STL.
I'm still new to some of this ...
2
votes
3answers
60 views
How can I get data of different types from an anonymous class
I have an object that delegates some work to another object which is implementing an interface. Then, I am creating anonymous classes implementing this interface and I would like to get information ...
0
votes
1answer
79 views
Can you simultaneously read and write a javascript array? [closed]
Short story
I need to be able to push messages onto a client-side javascript array/list but at the same time be able to pop messages off it. Sort of like a queue.
Long story
I am creating a real-time ...
0
votes
0answers
41 views
How do I create a buffer for this in order to test if there are still arguments available?
while (sizeof(cmds[x]) > 0){
here:
if (cmds[x][y] == " "){
y++;
goto here;
}
else argvector[x][y] = cmds[x][y];
}
x++;
y = 0;
goto nextCMD;
This is part of a ...
4
votes
3answers
90 views
Can I create a new array reference which contains a subset of an existing array, without copying memory?
I am building a file reader in C#, and large volumes of data will be enumerated. I want to use the same buffer for each element I read out, then pass the buffer on for further processing by the ...
0
votes
3answers
224 views
Dynamic structure to byte array conversion
I am developing a C# application which reads the contents of a binary file and displays the same in a datagrid view. The format of the data is something like this
...
2
votes
2answers
65 views
Issue passing Array as Parameter
I am using vertex buffers and element buffers.
The following function takes vertex and element data as arrays and creates buffers out of that. My real implementation is more complicated and stores ...
0
votes
1answer
93 views
Combine one Byte[] to Single Array
i do have an byte array included a range of numbers...
t Block and not the rest!
How can i have all block 4-8 in Temp[] ??
0
votes
1answer
226 views
how to manipulate char array [closed]
I have something like this.
char header[4096]; //header information from a file
there is a field called startByteOffset which is 8 bytes (offset in header is 8 too) and then there is endByteOffset ...