Category "memcpy"

Using 'memcpy()' inside a class with a union

I have a class foo that manages data using small buffer optimization (SBO). When size < 16, the data is held locally (in buffer), otherwise it is stored on t

is it possible to do memcpy in bits instead of bytes?

I would like to know is it possible to do memcpy by bits instead of bytes? I am writing a C code for Ethernet frame with VLAN tagging, in which I need to fill