HardwareBuffer is a high-performance and low-delay cross-process memory buffer provided by Android for sharing and transferring graphics and images. It is an underlying memory buffer object that can be shared among different processes and mapped to different hardware, such as GPUs and sensors. It can be seen from the constructor that the format and usage can be specified to enable the bottom layer to select the most appropriate implementation.
NativeBuffer is a memory buffer that is dedicated to HarmonyOS NEXT and has features similar to Hardwarebuffer.
