About 1,175,666 results (2,658 milliseconds)

Re: Returning unsinged char* from JNI/C++ to Java

https://groups.google.com/g/android-ndk/c/Q1_MbzY4y7k
Cause right now i was just copying unsigned char* to bytearray ... So when i convert hexadecimal to unsigned char it gave wrong conversion length with sizeof ...

displaying an image with wxBitmap

https://groups.google.com/g/wx-users/c/ymPCyngNltw
first i convert it to an unsigned char based rgb array (named: d). Then ... d= (unsigned char *) malloc (size*size*channels); // doesn't use new :) int ...

How to create kj::ArrayPtr<capnp::word> from char *?

https://groups.google.com/g/capnproto/c/pmvzjCYEiSE
Dec 12, 2017 ... error: no matching function for call to 'kj::ArrayPtr<capnp::word>::ArrayPtr(const byte*, std::vector<unsigned char>::size_type)' and I'm ...

How do I add checks for C style array pointers

https://groups.google.com/g/googlemock/c/BDEfqh1L6tg
Feb 8, 2011 ... I have a mock class with a function: write(unsigned char * txData, unsigned char * rxData, unsigned short length, IGPIODriver * cs ...

From array<word> to array<byte> and back: strict aliasing and ...

https://groups.google.com/g/capnproto/c/viZXnQ5iN50
Nov 28, 2014 ... There's no violation of aliasing rules because C/C++ aliasing rules make an explicit exception for casting to char* (including signed/unsigned ...

Making `char` a consistently unsigned type in Chromium

https://groups.google.com/a/chromium.org/g/chromium-dev/c/sXlMD05Aa54/m/TaniNxbgAAAJ
While C/C++ have the ambiguously-signed `char`, a language like Rust does ... I agree that char array subscripts are a bad and nonportable practice and should be ...

[osg-users] Need help with OSG Image.

https://groups.google.com/g/osg-users/c/wx3OHN7PAMo
// now i have the byte array and i set to imagemagick for (unsigned int y = 0; y < h; y++) { for (unsigned int x = 0; x < w; x++) { unsigned char c = writePtr[x ...

how to communicate unsigned char* to Java

https://groups.google.com/g/microsoft.public.win32.programmer.networks/c/Tm3fdWYKJ1Q
May 21, 2007 ... seems to give the same value as the value of the unsigned char in C++. ... //the length of this array is 3*count const char *charpixels ...

std::byte thoughts

https://groups.google.com/a/isocpp.org/g/std-proposals/c/VkTCNyPceVM
Oct 31, 2016 ... > between an array of unsigned integers that are at least 16-bits in size and ... strings around via `unsigned char*`, rather than `char*`.

Signed char - What Foolishness Is This!

https://groups.google.com/g/net.lang.c/c/ZnwASmSQ9_g
... unsigned char)c] & _UPPER ). Beyond this particular and annoying consequence ... char default to an unsigned value. There is also a keyword "signed" to

Converting a C char[] to []byte of string with cgo

https://groups.google.com/g/golang-nuts/c/5IBOJnqi0Lg
An array of a fixed size within a C struct is a value (the same as in Go), but C.GoString expects a pointer to a C.char. Try `C.GoString(&p.hostname)`.

speed issues with resize() and POD

https://groups.google.com/g/comp.lang.c++.moderated/c/Us8Run18_8c/m/-ZyfoVXnLDgJ
this. What is certain is. 1) If resize reduces the size of the array, the implementation ... > > a plain old unsigned char* and a length is that the vector > > is ...

Crypto++ Convert Integer to Unsigned Char

https://groups.google.com/g/cryptopp-users/c/XfI7jR66KpI
> I need to convert Integer to unsigned char array or to vector<unsigned char> > > If I do this: > for(int i=0; i<c.ByteCount(); i++){ > cout << int(c.GetByte(i)) ...

Signing and verifying messages with RSASSA-PSS.

https://groups.google.com/g/mailing.openssl.users/c/WyA6uNsW6zg
verify it imediatly afterwards. The actual input data of the test function is an unsigned char array of size 302 and a 2048 bit RSA key in DER format. ... C code) ...

creating a memoryview from scratch

https://groups.google.com/g/cython-users/c/AYFMrvSTVr4
Note that the array is (height, width) in size, in keeping with image storage standards (e.g. PIL) """ # cdef cnp.ndarray[char, ndim=2, mode='c'] arr # arr ...

Jansson string handling

https://groups.google.com/g/jansson-users/c/C33JtPM-fn0
Jul 18, 2014 ... I am having difficulty handling strings and arrays in jansson. unsigned char number[10]; // contains a hex array using upto 6 bytes.

Comitee stance on using aligned char arrays as raw storage without ...

https://groups.google.com/a/isocpp.org/g/std-discussion/c/rt2ivJnc4hg/m/Lr541AYgCQAJ
Jan 15, 2017 ... the C++ Standard and using char arrays as raw storage. ... memcpy(&v, recv_buffer, sizeof(v)); X c{v};. Martin Ba's profile photo ...

How to convert internal ASN1_INTEGER into little endian content ...

https://groups.google.com/g/mailing.openssl.users/c/TxxjNbZDPwk
Feb 11, 2004 ... serialNumberDER behind created array of unsigned char. Please ... serialNumberDER = new unsigned char[*size];<br> size ...

std::vector seems to be very slow in memory (re)allocation calls

https://groups.google.com/g/emscripten-discuss/c/GEftClbwmYg
May 17, 2016 ... std::vector<unsigned char> abc; abc.reserve(1920000); seems to be ... For malloc and reserve (with an initially empty array), there is no ...

Matching arrays

https://groups.google.com/g/googlemock/c/4wdaWJQPV1k
It's unclear what you mean exactly by "C-array" (a pointer and a size? an ... unsigned char*, T = unsigned char]': > > test.cpp:30: instantiated from ...