Processing method for self discribing data object
A technology of data objects and processing methods, which is applied in the direction of digital data processing, input/output process of data processing, program control design, etc., can solve the problem that the operating system cannot adapt to the requirements of WEB services and lacks character string length description information. and other problems to achieve the effect of quickly responding to application requests, reducing ambiguity and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0085] see figure 1 , the string data type is a data structure designed to support component-based programming, and is generally used to store user constant strings. It has a fixed-length storage area that can store user strings. It also saves the length of the string, in this sense, the string data type is a self-describing data structure; figure 1 It is a schematic diagram of the storage structure of the string data type.
[0086] The string data type is defined as a class in the C++ language. It can be seen from the figure that the string data consists of three parts: the first part _ezStrBuf_t stores the length of the second part EzStr in the string data, and the first part occupies four characters. section, the second part stores a Unicode character string, and the third part stores a two-byte ' / 0' character to indicate the end. This structure is the same as the memory structure of the BSTR data type of the American Microsoft Component Object Model (The Component Objec...
Embodiment 2
[0096] The byte cache data type is a data structure designed to support component programming, and it provides a buffer for storing bytes. see figure 2 , which is a schematic diagram of the storage structure of the byte cache data type:
[0097] The byte buffer data type is defined as a class in the C++ language, which has a member variable byte**m_ppbuf, that is, m_ppbuf on the diagram. The byte buffer data type is defined as a byte* type pointer in C language, which points to figure 2Where the pointer _ezByteBuf_t points to.
[0098] Since the byte buffer data type points to the place pointed to by the pointer _ezByteBuf_t in C language, see figure 2 , which is compatible with COM's BSTR storage structure. intercept figure 2 the middle part as image 3 shown; from figure 2 It can be seen that the first four bytes are the first part _ezByteBuf_t, the last two bytes are the third part, and the middle one is the second part capacity. The value stored in the first p...
Embodiment 3
[0103] The character cache data type is a combination of the data types in the above two embodiments. Compared with the byte cache data, the most important area is that the character cache data stores a string data object, while the byte cache data type can store any data. Its storage structure see Figure 4 .
[0104] further reference Figure 1-Figure 3 , and see Figure 4 , the character cache data type is a character string data structure stored in the byte cache data, which will not be repeated here.
[0105] Like the above two data types, character buffer data can be defined on the stack or on the heap.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com