User Activity

Hello Friendsi'm new in STM32 i wanna know how to Read Data Byte-by-Byte from uart Rx Circular Dma and save this data in a buffer ? and my challenge is i do not know my input data length and type of that (hex, bin, ascii ,...)theres any sample code ?...
Kudos from