The embodiment of the invention provides a
message processing method and device,
electronic equipment and a storage medium, and relates to the technical field of networks, the method comprises the following steps: applying for a memory space for an original message, reserving an extension head area in the memory space, storing data of the original message in the memory space, and storing the data of the original message in the extension head area; the initial position of data storage is identified by a data initial pointer, and the extended header area is located in front of the initial position pointed by the data initial pointer, then adding an outer-layer message header to the original message in response to the need, and if the extended header area meets the length requirement of the outer-layer message header, adding the outer-layer message header to the original message. If not, moving the data start pointer towards the start direction of the memory space by the length of the outer-layer message header, filling the outer-layer message header in the expanded header area vacated after moving, and packaging the original message into the target message, thereby remarkably reducing memory access operation, ensuring that enough space is available in the whole life cycle of the message, and improving the message access efficiency. And the certainty and efficiency of the
message processing flow are improved.