Abstract:
Embodiments of the present invention provide a buffer manager and a buffer management method based on an address pointer linked list. In the embodiments, address pointers of all buffer blocks in a buffer are divided into several groups, lower bits of address pointers in each group are used to record a linked list between the address pointers in the same group, and an address pointer which is pointed by one predetermined address pointer of each group and is in a different group is further recorded to upbuild a linked list between the groups. Thereby, an address linked list can still be stored without a RAM with a width equal to a pointer depth and with a depth equal to the total number of buffer blocks in the buffer as required by the conventional art, which greatly reduces hardware resources required.
Abstract:
A billing method, and a billing system and a bill cycle cut off module which may be used in implementing the method, are provided. The method includes receiving an online billing message and carrying out preprocessing for the message, wherein the online billing message includes user identification information and billing information. The message further includes executing an online bill cycle cut off operation after determining that the bill cycle cut off operation is required to be triggered for an account related to the user identification information, obtaining a result of the bill cycle cut off, and carrying out a rating and billing operation according to the billing information so as to complete billing. The provided method can be applied to implement a real-time online bill cycle cut off and avoid loss resulted from out-of-time bill cycle cut off. Moreover, the provided method may incorporate online billing and offline billing, can be implemented flexibly, and can easily realize individualized bill cycle setting. During the account cancellation process for the user, the provided method may can shorten the waiting time of the user and improve customer satisfaction.