Is it possible to dereference a void pointer without knowing the knowledge (at runtime) of the size of an element in memory? Or, if this is not possible with the void pointer, how can I access a specific memory address (on the heap) and read only a certain number of bytes known at run time?
With char *, which basically indicates the size of a byte of memory, you can access all bytes of any type of data.
char *
And you can also apply void *to the desired type and read it to get the correct dereferenced value.
void *
Source: https://habr.com/ru/post/1665191/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1665186/how-to-search-all-articles-belongs-to-a-tag-in-laravel&usg=ALkJrhijiQJUevMYbqJduSgAnea8ZFPeDwAngular 2: routerLink does not allow - angularScala optional matching template - scalaHow to check the correctness of several fields of a form field in angular? - javascriptAngular 2 [routerLink] Not allowed in browser - angularjsHow to Define a Security Profile in a Search - iosHow to check if a string is entered by a user in the format mm / dd / yyyy in android? - javaWhat is this syntax in Babel compiled code? - javascriptsplit, display data in two columns in pandas data frame - pythonHow to align these buttons in a row? - htmlAll Articles