An information determination method, device, computer readable storage medium and chip

By acquiring and calculating the size and reference value of the message data, the starting storage address of the message is adjusted, thus solving the problem of inaccurate message storage address and improving storage efficiency.

CN122262017APending Publication Date: 2026-06-23CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
Filing Date
2026-02-04
Publication Date
2026-06-23

Smart Images

  • Figure CN122262017A_ABST
    Figure CN122262017A_ABST
Patent Text Reader

Abstract

The application provides an information determination method, device, computer readable storage medium and chip. The method comprises the following steps: acquiring a first size of first data received at a current moment; and determining a target address offset value corresponding to second data based on the size of the first data, a reference size and a target value, wherein the second data is data received next after the first data. The application solves the problem of inaccurate starting storage address in the related art when determining the starting storage address of a message, thereby improving the storage efficiency of the message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data storage in computer technology, and more particularly to an information determination method, apparatus, computer-readable storage medium, and chip. Background Technology

[0002] With the development of communication technology, message processing via a Data Processing Unit (DPU) has become widely used. Currently, after a terminal receives the first message through the network interface, the DPU determines the starting storage address of the next received second message in the buffer area based on the length of the first message received at that moment. However, this method of determining the starting storage address of the second message is inaccurate, which can lead to the second message not being stored correctly, thus affecting the storage efficiency of the second message. Summary of the Invention

[0003] To address the aforementioned technical problems, this application aims to provide an information determination method, device, computer-readable storage medium, and chip, which solves the problem of inaccurate determination of the starting storage address when determining the starting storage address of a message in related technologies, thereby improving message storage efficiency.

[0004] The technical solution of this application embodiment is implemented as follows: An information determination method, the method comprising: Get the first size of the first data received at the current moment; Based on the size of the first data, the reference size, and the target value, the target address offset value corresponding to the second data is determined; wherein, the second data is the next data received after the first data.

[0005] The method in the above scheme further includes: Obtain the second size of each sub-buffer region within the first buffer region; The reference size is determined based on the size of each of the multiple sub-buffer regions.

[0006] In the above scheme, determining the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value includes: Obtain the size of the target sub-buffer region corresponding to the first data; wherein, the target sub-buffer region is the region in the first buffer region where the first data is stored; Based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value, the target address offset value corresponding to the second data is determined.

[0007] In the above scheme, determining the target address offset value corresponding to the second data based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value includes: Based on the size of the first data, the reference size, and the first baseline value, a first difference value between the size of the first data and the reference size is determined; Based on the size of the first data, the size of the target sub-buffer region, and the second benchmark value, a second difference value between the size of the first data and the size of the target sub-buffer region is determined; wherein, the target value includes the first benchmark value and the second benchmark value; Based on the first difference value and the second difference value, the target address offset value corresponding to the second data is determined.

[0008] In the above scheme, determining the target address offset value corresponding to the second data based on the first difference value and the second difference value includes: Calculate the difference between the first difference value and the second difference value; The target address offset value corresponding to the second data is determined to be the difference.

[0009] In the above scheme, determining the first difference value between the size of the first data and the reference size based on the size of the first data, the reference size, and the first benchmark value includes: If the size of the first data is greater than the reference size, the first difference value is determined to be a first value; If the size of the first data is less than or equal to the reference size, the first difference value is determined to be the second value; wherein, the first reference value includes the first value and the second value.

[0010] In the above scheme, determining the second difference value between the size of the first data and the size of the target sub-buffer region based on the size of the first data, the size of the target sub-buffer region, and the second reference value includes: If the size of the first data is less than or equal to the size of the target sub-buffer region, the second difference value is determined to be the third value; If the size of the first data is greater than the size of the target sub-buffer region, the second difference value is determined to be the fourth value; wherein, the second reference value includes the third value and the fourth value.

[0011] An information determining device, the device comprising: The acquisition unit is used to acquire the first size of the first data received at the current moment; The determining unit is used to determine the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value; wherein the second data is the next received data after the first data.

[0012] An information determining device, the device comprising: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information determination program in the memory to implement the steps of the information determination method described above.

[0013] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the information determination method described above.

[0014] A chip comprising: a processor for retrieving and running a computer program from a memory, causing a device having the chip installed to perform the aforementioned information determination method.

[0015] A computer program product includes a computer program that is executed by a processor using the information determination method described above.

[0016] The information determination method, device, computer-readable storage medium, and chip provided in this application embodiment can obtain the first size of the first data received at the current moment; and determine the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value. The second data is the next data received after the first data. Thus, after obtaining the size of the first data received at the current moment, the target address offset value corresponding to the second data can be jointly determined by combining the size of the first data, the reference size, and the target value. This target address offset value is the pointer offset value of the second data during storage. Therefore, when the second data is received, the accurate starting storage address of the second data can be determined based on this target address offset value, thereby solving the problem of inaccurate starting storage addresses in related technologies and improving message storage efficiency. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating an information determination method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating the process of determining the target address offset value corresponding to an information determination method provided in this application embodiment; Figure 3 This is a schematic diagram of the data storage process in an information processing method provided in an embodiment of this application; Figure 4 This is a schematic diagram of another data storage process in an information processing method provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an information determining device provided during the implementation period of this application; Figure 6 This is a schematic diagram of the structure of an information determination device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0019] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0020] Unless otherwise specified, any step in the embodiments of this application performed by the electronic device may be executed by the processor of the electronic device. It is also worth noting that the embodiments of this application do not limit the order in which the electronic device performs the following steps. Furthermore, the methods used to process data in different embodiments may be the same or different methods. It should also be noted that any step in the embodiments of this application can be executed independently by the electronic device; that is, when the electronic device performs any step in the following embodiments, it may not depend on the execution of other steps.

[0021] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0022] This application provides an information determination method, which can be applied to an information determination device, and refers to... Figure 1 As shown, the method may include the following steps.

[0023] Step 101: The information determination device obtains the size of the first data received at the current moment.

[0024] In this embodiment, the information determining device may refer to a server, and the first data may refer to the data currently received by the server. In one possible implementation, the first data may refer to a message, and the size of the first data may refer to the message length. Specifically, after receiving the first data, the DPU in the information determining device can analyze the first data to obtain the size of the first data (hereinafter referred to as: the first size), i.e., the length of the message.

[0025] It should be noted that the first data, i.e., the message, will first arrive at the network interface of the information determination device, and then reach the DPU via the network interface. Furthermore, to prevent data loss, after receiving the first data, the DPU will first store the data in the server's second buffer area, namely Random Access Memory (RAM). The second buffer area can also be referred to as the local buffer.

[0026] Step 102: The information determining device determines the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value.

[0027] The second data is the next data received after the first data.

[0028] In the embodiments of this application, the reference size may refer to the estimated size of a buffer unit. It should be noted that the estimated size of each buffer unit is consistent.

[0029] In one feasible approach, the reference size can be implemented in the following way.

[0030] A1. The information determination device obtains the size of each sub-buffer area in the first buffer area.

[0031] In this embodiment, the first buffer area can refer to the area where data (including first data, second data, etc.) needs to be stored. In fact, the first buffer area is the terminal buffer. When storing data, the first buffer area may or may not contain any data in advance; no specific limitation is made here.

[0032] In this embodiment, the first buffer region may include multiple sub-buffer regions, i.e., multiple buffer units. It should be noted that the size of each buffer unit may be different.

[0033] In this embodiment of the application, the size of each sub-buffer region of the first buffer region, i.e., the size of each buffer unit (hereinafter referred to as: second size), can be obtained.

[0034] A2. The information determination device determines the reference size based on the size of each sub-buffer region.

[0035] In this embodiment of the application, multiple second sizes can be sorted in ascending order, and the second size ranked first can be determined as the reference size, that is, the second size with the smallest value can be used as the reference size.

[0036] It should be noted that the process of determining the reference size is performed before the first data is received.

[0037] In the embodiments of this application, the target address offset value corresponding to the second data may refer to the offset value of the starting storage address of the second data.

[0038] It should be noted that the target address offset value corresponding to the second data can also refer to the offset value between the buffer unit corresponding to the estimated storage end position of the first data and the buffer unit corresponding to the actual storage end position when storing the first data.

[0039] In another possible way, such as Figure 2 As shown, the estimated buffer pointer can be determined first based on the size of the first data (i.e., the first size) and the reference size. Then, the actual buffer size (hereinafter referred to as the third size) can be obtained based on the estimated buffer pointer. Furthermore, the offset value of the starting storage address of the second data in the first buffer area (i.e., the terminal buffer), i.e. the target address offset value, can be determined based on the size of the first data, the reference size, the actual buffer size and the preset target value.

[0040] It should be noted that the second data can also refer to the message, and the size of the second data can also refer to the message length.

[0041] In this embodiment, given that the starting storage address of the first data is known, assuming the first data is 5K, the reference size is 6K, and the actual buffer size is 8K, it is clear that 5K is smaller than both 6K and 8K. Therefore, based on this, regardless of whether we consider the reference size or the actual buffer size, it is ultimately determined that only one buffer unit is needed to store the first data. That is, the buffer unit corresponding to the estimated storage end position of the first data and the buffer unit corresponding to the actual storage end position are the same. In this case, it indicates that the offset value of the starting storage address of the second data (i.e., the target address offset value corresponding to the second data) is 0, meaning that there is no offset in the starting storage address of the second data. However, if the reference size is 7K, then according to the reference size... The initial estimate suggests two buffer units are needed to store the first data, while the actual size suggests only one buffer unit is required. In other words, the actual first data can be stored in one buffer unit, but the estimate suggests two. Therefore, the buffer unit corresponding to the estimated end of storage is not the same as the buffer unit corresponding to the actual end of storage. This means the starting storage address of the second data will be offset. In this case, the target address offset value for the second data needs to be determined based on the size of the first data, the reference size, the actual buffer size, and the target value. Then, the starting storage address of the second data is determined based on this target address offset value, instead of... Figure 4 As with the related technologies mentioned above, the inconsistency between the estimated buffer size and the actual buffer size leads to an inaccurate starting storage address for the second data determined solely based on the size of the first data and the estimated buffer size. Consequently, the second data cannot be accurately stored in the first buffer area, thus affecting data storage efficiency.

[0042] It should be noted that after determining the target address offset value corresponding to the second data, the target address offset value can be stored in RAM.

[0043] In this embodiment, an estimated buffer pointer (i.e., the estimated starting storage address of the second data in the terminal buffer) can be determined first based on the reference size and the size of the first data. Then, the actual buffer size can be obtained based on the estimated buffer pointer. Further, the target address offset value corresponding to the second data can be determined together based on the actual buffer size, the size of the first data, and the target value. Finally, the estimated starting storage address can be adjusted based on the target address offset value to obtain the actual starting storage address of the second data in the terminal buffer, which can also be called the target starting storage address of the second data in the terminal buffer.

[0044] In other embodiments of this application, step 102 may be implemented by steps 102a-102b.

[0045] Step 102a: The information determination device acquires the size of the target sub-buffer region corresponding to the first data.

[0046] The target sub-buffer region is the region where the first data in the first buffer region is stored.

[0047] In this embodiment, the target sub-buffer region can be a portion of the buffer region within the first buffer region (i.e., the terminal buffer); the size of the target sub-buffer region is the actual buffer size (i.e., the third size). Specifically, as... Figure 3 As shown, a scheduling request can be generated based on the estimated starting storage address and sent to the Central Processing Unit (CPU). Then, the CPU will obtain the identifier of the target sub-buffer region, i.e., the ID of the target sub-buffer region, based on the estimated starting storage address of the second data and send it to the DPU. Furthermore, the DPU can obtain the size of the target sub-buffer region, i.e., the third size, based on the ID.

[0048] Step 102b: The information determining device determines the target address offset value corresponding to the second data based on the size of the target sub-buffer area, the size of the first data, the reference size, and the target value.

[0049] In this embodiment, the target value may refer to a preset pointer offset value, and the target value may include multiple values. Specifically, a first difference value between the size of the first data and the reference size can be determined first based on the target value. Then, a second difference value between the size of the first data and the size of the target sub-buffer area can be determined based on the size of the first data, the second size of the target sub-buffer area, and the target value. Finally, the final target address offset value can be determined based on the first difference value and the second difference value.

[0050] It should be noted that the process of determining the target address offset value is carried out after the first data is received, and is determined by the compensation module, i.e., the DPU.

[0051] In this embodiment of the application, the target value may be preset according to the user's actual needs.

[0052] In other embodiments of this application, step 102b can be implemented by steps 102b1-102b3.

[0053] Step 102b1: The information determining device determines a first difference value between the size of the first data and the reference size based on the size of the first data, the reference size, and the first baseline value.

[0054] In this embodiment, the first reference value can be a subset of the target values. Specifically, the size of the first data can be compared with the size of the reference data, and the first difference value can be determined based on the comparison result and the first reference data. In one possible implementation, the first difference value can actually characterize the comparison result between the size of the first data and the reference size; that is, the first difference value is different in the two cases where the size of the first data is greater than the reference size and the size of the first data is less than or equal to the reference size.

[0055] It should be noted that, in one feasible approach, all data received by the server must be less than or equal to twice the reference size. For example, if the reference size is 4K, then the data received by the server needs to be less than or equal to 8K, meaning the first size must be less than or equal to 8K. In this case, if the first size is greater than the reference size, then two consecutive buffer units can completely accommodate any data received by the server.

[0056] In other embodiments of this application, step 102b1 can be implemented by step 102b11 or step 102b12.

[0057] Step 102b11: If the size of the first data is greater than the reference size, the information determining device determines the first difference value as the first value.

[0058] In this embodiment of the application, the first value can be 2. Specifically, as shown below... Figure 2 As shown, if the size of the first data is greater than the reference size (i.e., the size of the smallest buffer unit), then the first difference value can be directly determined to be 2.

[0059] Step 102b12: If the size of the first data is less than or equal to the reference size, the information determining device determines the first difference value as the second value.

[0060] The first benchmark value includes a first value and a second value.

[0061] In this embodiment, the second value can be 0; if the size of the first data is less than or equal to the reference size, it means that the smallest buffer unit in the terminal buffer can completely store the first data, that is, any buffer unit in the terminal buffer can store the first data. For example, if the reference size is 4k and the size of the first data is 3k, then any buffer unit selected from the terminal buffer can store the first data. At this time, the first difference value can be directly determined to be the second value, that is, the first difference value is determined to be 0.

[0062] Step 102b2: The information determining device determines a second difference value between the size of the first data and the size of the target sub-buffer region based on the size of the first data, the size of the target sub-buffer region, and the second reference value.

[0063] The target value includes a first baseline value and a second baseline value.

[0064] In the embodiments of this application, the second reference value may also be a portion of the target value. It should be noted that the first reference value and the second reference value may be the same or different, and multiple values ​​in the first reference value may be the same or different, as may multiple values ​​in the second reference value; no specific limitations are made here.

[0065] In one feasible approach, the second difference value can actually characterize the comparison result between the size of the first data and the size of the target sub-buffer region. That is, the second difference value is different in the two cases where the size of the first data is greater than the size of the target sub-buffer region and the size of the first data is less than or equal to the size of the target sub-buffer region.

[0066] In this embodiment of the application, the size of the first data can be compared with the size of the target sub-buffer region, and the target address offset value corresponding to the second data can be determined based on the comparison result and the second difference value.

[0067] In other embodiments of this application, step 102b2 can be implemented by step 102b21 ​​or step 102b22.

[0068] Step 102b21: If the size of the first data is less than or equal to the size of the target sub-buffer region, the information determining device determines the second difference value as the third value.

[0069] In this embodiment, both the third and fourth values ​​can be preset according to actual needs. Preferably, the third value is 1 and the fourth value is 2. Specifically, if the size of the first data is less than or equal to the size of the target sub-buffer area (i.e., the actual buffer size), it means that only one buffer unit is actually needed to store the first data. In this case, the second difference value can be determined to be the third value, that is, the second difference value is determined to be 1.

[0070] Step 102b22: If the size of the first data is greater than the size of the target sub-buffer region, the information determining device determines the second difference value as the fourth value.

[0071] The second benchmark value includes the third and fourth values.

[0072] In this embodiment of the application, if the size of the first data is greater than the size of the target sub-buffer area (i.e. the actual buffer size), it means that one buffer unit cannot store the first data. In other words, it may actually take two buffer units to store the first data. At this time, the second difference value can be determined to be 2.

[0073] Step 102b3: The information determining device determines the target address offset value corresponding to the second data based on the first difference value and the second difference value.

[0074] In this embodiment of the application, the difference between the first difference value and the second difference value can be calculated, and the target address offset value corresponding to the second data can be determined based on the difference.

[0075] In the embodiments of this application, step 102b3 can be implemented by steps 102b31-102b32.

[0076] Step 102b31: The information determination device calculates the difference between the first difference value and the second difference value.

[0077] In the embodiments of this application, such as Figure 2 As shown, the difference between the two can be obtained by directly subtracting the second difference value from the first difference value.

[0078] Step 102b32: The information determining device determines the target address offset value corresponding to the second data as the difference.

[0079] In this embodiment of the application, the difference can be directly used as the target address offset value. For example, if the first difference value is 2 and the second difference value is 1, the difference between the first difference value and the second difference value can be calculated as 1. That is, at this time, the address offset value corresponding to the second data is 1.

[0080] In one feasible way, such as Figure 2As shown, after obtaining the target address offset value corresponding to the second data, the first data can be stored in the pre-determined target sub-buffer area. At the same time, the target address offset value can be stored in RAM. That is, the process of storing the first data in the target sub-buffer area and storing the target address offset value in the second buffer area are performed simultaneously.

[0081] It should be noted that the determined first and second difference values ​​will be stored in other memory areas of RAM until the end of the message's (i.e., the first data's) lifecycle. The message's lifecycle can refer to the time required to send the first data, that is, the time from receiving the second data to sending it out.

[0082] In other embodiments of this application, step 103 may be performed after step 102.

[0083] Step 103: The information determination device determines the target starting storage address of the second data in the first buffer area based on the target address offset value.

[0084] It should be noted that the first buffer area can refer to the terminal buffer.

[0085] In this embodiment of the application, after obtaining the target address offset value corresponding to the second data, the previously estimated starting storage address can be subtracted from or added to the obtained target address offset value to obtain the target starting storage address of the second data in the terminal buffer.

[0086] In this embodiment, after determining the target starting storage address of the second data in the terminal buffer, the device can wait to receive the second data. At a future point, after receiving the second data, the information determining device can continue following steps 101-102: first, obtain the size of the second data; then, based on the size of the second data, the reference size, and the target value, determine the target address offset value corresponding to the next received third data. The target address offset value corresponding to the third data can refer to the offset between the estimated starting storage address of the third data in the terminal buffer and the actual starting storage address of the third data in the terminal buffer.

[0087] It should be noted that when determining the target address offset value corresponding to the third data, it is also necessary to, as described in step 102, first determine an estimated buffer pointer based on the reference size and the size of the second data, and then obtain the actual buffer size based on the estimated buffer pointer. Thus, based on the actual buffer size, the size of the second data, and the target value, the target address offset value corresponding to the third data is determined together.

[0088] In this embodiment, after determining the target address offset value corresponding to the third data, it is also necessary to store the target address offset value corresponding to the third data into RAM while storing the second data into the terminal buffer. The estimated buffer pointer is then adjusted based on the target address offset value corresponding to the third data to obtain the actual starting storage address of the third data in the terminal buffer. Afterwards, when the third data is received at a future time, such as... Figure 2 and Figure 3 As shown, it is necessary to continue determining the target address offset value corresponding to the next received fourth data based on the size of the third data, the reference size, and the target value. Then, when storing the third data into the terminal buffer, the target address offset value corresponding to the fourth data can be stored into RAM. By continuously processing in this loop, it can be ensured that the correct starting storage address can be given for the next data to be received at the same time as the current data is received. That is, it can be ensured that the starting storage address of each received data is accurate. This can significantly reduce the step of recalculating the buffer pointer based on the actual buffer size in related technologies. While sending data (i.e., the message), the address pointer is compensated by the compensation module, which achieves the effect of real-time updating of the buffer address pointer, greatly improving the storage efficiency of the message.

[0089] In this embodiment, the solution is achieved by modifying the Register Transfer Level (RTL) code of the DPU before the DPU chip is fabricated. This allows the goal to be achieved by modifying the hardware internally without modifying the external interface. At the same time, it reduces the dependence on software (i.e., driver) modifications and ensures the uniformity of software versions for different platforms.

[0090] The information determination method provided in this application embodiment, after obtaining the size of the first data received at the current time, can combine the size of the first data, the reference size, and the target value to jointly determine the target address offset value corresponding to the second data, that is, the pointer offset value of the second data when it is stored. In this way, when the second data is received, the accurate starting storage address of the second data can be determined according to the target address offset value, thereby solving the problem of inaccurate starting storage address determination in related technologies, and thus improving the storage efficiency of the message.

[0091] Based on the foregoing embodiments, embodiments of this application provide an information determining device, which can be applied to... Figure 1 In the information determination method provided in the corresponding embodiment, refer to Figure 5As shown, the information determining device 3 may include: an acquisition unit 21 and a determining unit 22, wherein: Acquisition unit 21 is used to acquire the first size of the first data received at the current time; The determining unit 22 is used to determine the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value; wherein the second data is the next received data after the first data.

[0092] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: Get the size of each sub-buffer region in the first buffer region; The reference size is determined based on the size of each of the multiple sub-buffer regions.

[0093] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: Obtain the size of the target sub-buffer region corresponding to the first data; wherein, the target sub-buffer region is the region where the first data in the first buffer region is stored; Based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value, determine the target address offset value corresponding to the second data.

[0094] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: Based on the size of the first data, the reference size, and the first baseline value, determine the first difference value between the size of the first data and the reference size; Based on the size of the first data, the size of the target sub-buffer region, and the second benchmark value, a second difference value between the size of the first data and the size of the target sub-buffer region is determined; wherein, the target value includes the first benchmark value and the second benchmark value. Based on the first difference value and the second difference value, the target address offset value corresponding to the second data is determined.

[0095] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: Calculate the difference between the first difference value and the second difference value; The target address offset value corresponding to the second data is determined to be the difference.

[0096] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: If the size of the first data is greater than the reference size, the first difference value is determined to be the first numerical value; If the size of the first data is less than or equal to the reference size, the first difference value is determined to be the second value; wherein, the first reference value includes the first value and the second value.

[0097] In other embodiments of this application, the determining unit 22 is further configured to perform the following steps: If the size of the first data is less than or equal to the size of the target sub-buffer region, the second difference value is determined to be the third value. If the size of the first data is greater than the size of the target sub-buffer region, the second difference value is determined to be the fourth value; wherein, the second baseline value includes the third value and the fourth value.

[0098] It should be noted that the specific implementation process of the steps performed by each unit in the embodiments of this application can be referred to Figure 1 The implementation process of the information determination method provided in the corresponding embodiments will not be described in detail here.

[0099] The information determination device provided in the embodiments of this application, after obtaining the size of the first data received at the current time, can combine the size of the first data, the reference size, and the target value to jointly determine the target address offset value corresponding to the second data, that is, the pointer offset value of the second data when it is stored. In this way, when the second data is received, the accurate starting storage address of the second data can be determined according to the target address offset value, thereby solving the problem of inaccurate starting storage address determination in related technologies, and thus improving the storage efficiency of the message.

[0100] Based on the foregoing embodiments, embodiments of this application provide an information determining device, which can be applied to... Figure 1 In the information determination method provided in the corresponding embodiment, refer to Figure 6 As shown, the information determining device 3 may include: a processor 31, a memory 32, and a communication bus 33, wherein: Communication bus 33 is used to realize the communication connection between processor 31 and memory 32; The processor 31 is used to execute the information determination program in the memory 32 to perform the following steps: Get the first size of the first data received at the current moment; Based on the size of the first data, the reference size, and the target value, the target address offset value corresponding to the second data is determined; wherein, the second data is the next received data after the first data.

[0101] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: Get the size of each sub-buffer region in the first buffer region; The reference size is determined based on the size of each of the multiple sub-buffer regions.

[0102] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: Obtain the size of the target sub-buffer region corresponding to the first data; wherein, the target sub-buffer region is the region where the first data in the first buffer region is stored; Based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value, determine the target address offset value corresponding to the second data.

[0103] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: Based on the size of the first data, the reference size, and the first baseline value, determine the first difference value between the size of the first data and the reference size; Based on the size of the first data, the size of the target sub-buffer region, and the second benchmark value, a second difference value between the size of the first data and the size of the target sub-buffer region is determined; wherein, the target value includes the first benchmark value and the second benchmark value. Based on the first difference value and the second difference value, the target address offset value corresponding to the second data is determined.

[0104] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: Calculate the difference between the first difference value and the second difference value; The target address offset value corresponding to the second data is determined to be the difference.

[0105] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: If the size of the first data is greater than the reference size, the first difference value is determined to be the first numerical value; If the size of the first data is less than or equal to the reference size, the first difference value is determined to be the second value; wherein, the first reference value includes the first value and the second value.

[0106] In other embodiments of this application, the processor 31 is used to execute an information determination program in the memory 32 to perform the following steps: If the size of the first data is less than or equal to the size of the target sub-buffer region, the second difference value is determined to be the third value. If the size of the first data is greater than the size of the target sub-buffer region, the second difference value is determined to be the fourth value; wherein, the second baseline value includes the third value and the fourth value.

[0107] It should be noted that a detailed description of the steps performed by the processor can be found in [reference needed]. Figure 1The information determination method provided in the corresponding embodiments will not be described again here.

[0108] The information determination device provided in the embodiments of this application, after obtaining the size of the first data received at the current time, can combine the size of the first data, the reference size, and the target value to jointly determine the target address offset value corresponding to the second data, that is, the pointer offset value of the second data when it is stored. In this way, when the second data is received, the accurate starting storage address of the second data can be determined according to the target address offset value, thereby solving the problem of inaccurate starting storage address determination in related technologies, and thus improving the storage efficiency of the message.

[0109] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to achieve... Figure 1 The corresponding embodiments provide the steps of the information determination method.

[0110] Based on the foregoing embodiments, embodiments of this application provide a chip, a chip processor, for retrieving and running a computer program from memory, causing a device with the chip installed to perform... Figure 1 The corresponding implementation provides an information determination method.

[0111] Based on the foregoing embodiments, embodiments of this application provide a computer program product, which includes a computer program that, when executed by a processor, implements... Figure 1 The corresponding embodiments provide the steps of the information determination method.

[0112] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or chips. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a chip implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0113] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and chips according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0114] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0115] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0116] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining information, characterized in that, The method includes: Get the size of the first data received at the current moment; Based on the size of the first data, the reference size, and the target value, the target address offset value corresponding to the second data is determined; wherein, the second data is the next data received after the first data.

2. The method according to claim 1, characterized in that, The method further includes: Get the size of each sub-buffer region in the first buffer region; The reference size is determined based on the size of each of the multiple sub-buffer regions.

3. The method according to claim 1, characterized in that, The step of determining the target address offset value corresponding to the second data based on the size of the first data, the reference size, and the target value includes: Obtain the size of the target sub-buffer region corresponding to the first data; wherein, the target sub-buffer region is the region in the first buffer region where the first data is stored; Based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value, the target address offset value corresponding to the second data is determined.

4. The method according to claim 3, characterized in that, The step of determining the target address offset value corresponding to the second data based on the size of the target sub-buffer region, the size of the first data, the reference size, and the target value includes: Based on the size of the first data, the reference size, and the first baseline value, a first difference value between the size of the first data and the reference size is determined; Based on the size of the first data, the size of the target sub-buffer region, and the second benchmark value, a second difference value between the size of the first data and the size of the target sub-buffer region is determined; wherein, the target value includes the first benchmark value and the second benchmark value; Based on the first difference value and the second difference value, the target address offset value corresponding to the second data is determined.

5. The method according to claim 4, characterized in that, The step of determining the target address offset value corresponding to the second data based on the first difference value and the second difference value includes: Calculate the difference between the first difference value and the second difference value; The target address offset value corresponding to the second data is determined to be the difference.

6. The method according to claim 4, characterized in that, Determining the first difference value between the size of the first data and the reference size based on the size of the first data, the reference size, and the first benchmark value includes: If the size of the first data is greater than the reference size, the first difference value is determined to be a first value; If the size of the first data is less than or equal to the reference size, the first difference value is determined to be the second value; wherein, the first reference value includes the first value and the second value.

7. The method according to claim 4, characterized in that, The step of determining a second difference value between the size of the first data and the size of the target sub-buffer region based on the size of the first data, the size of the target sub-buffer region, and a second reference value includes: If the size of the first data is less than or equal to the size of the target sub-buffer region, the second difference value is determined to be the third value; If the size of the first data is greater than the size of the target sub-buffer region, the second difference value is determined to be the fourth value; wherein, the second reference value includes the third value and the fourth value.

8. An information determining device, characterized in that, The device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute an information determination program in memory to implement the steps of the information determination method as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the information determination method as described in any one of claims 1-7.

10. A chip, characterized in that, The chip includes a processor for calling and running a computer program from a memory, causing a device equipped with the chip to perform the information determination method according to any one of claims 1 to 7.