Patent ID: 7562202

Claim:
A method of memory management in computing devices, said method comprising the steps of: receiving file data in a computing device; processing said file data to determine that said file data is composed of one or more data blocks and a last data portion, each of said one or more data blocks having a pre-determined block size, said last data portion having a smaller size than said pre-determined block size; writing said one or more data blocks into a first memory, said first memory configured to store data blocks having said pre-determined block size and included within a plurality of sectors; and caching said last data portion in a second memory prior to transmitting said last data portion to said first memory, the step of caching said last data portion comprises the steps of: (A) allocating part of said second memory as a file buffer, said file buffer configured to store file data; (B) writing data bytes of said last data portion to said file buffer until data in said file buffer is determined to have said pre-determined block size; and (C) responsive to said determination that said data in said file buffer has said pre-determined block size, moving said data from said file buffer to one of any of the available data blocks in the plurality of sectors in said first memory prior to continuing step (B).