TMemoryStream : Method overview By inheritance
TMemoryStream
| Member | Visibility | Description |
|---|---|---|
| Clear | public | Zeroes the position, capacity and size of the stream. |
| Destroy | public | Frees any allocated memory and destroys the memory stream. |
| LoadFromFile | public | Loads the contents of a file into memory. |
| LoadFromStream | public | Loads the contents of a stream into memory. |
| SetSize | public | Sets the size for the memory stream. |
| Write | public | Writes data to the stream's memory. |
TCustomMemoryStream
| Member | Visibility | Description |
|---|---|---|
| Read | public | Reads Count bytes from the stream into buffer. |
| SaveToFile | public | Writes the contents of the stream to a file. |
| SaveToStream | public | Writes the contents of the memory stream to another stream. |
| Seek | public | Sets a new position in the stream. |
TStream
| Member | Visibility | Description |
|---|---|---|
| CopyFrom | public | Copy data from one stream to another |
| FixupResourceHeader | public | Not implemented in FPC |
| Read | public | Reads data from the stream to a buffer and returns the number of bytes read. |
| ReadAnsiString | public | Read an ansistring from the stream and return its value. |
| ReadBuffer | public | Reads data from the stream to a buffer |
| ReadBufferData | public | |
| ReadByte | public | Read a byte from the stream and return its value. |
| ReadComponent | public | Reads component data from a stream |
| ReadComponentRes | public | Reads component data and resource header from a stream |
| ReadData | public | |
| ReadDWord | public | Read a DWord from the stream and return its value. |
| ReadQWord | public | Read a QWord value from the stream and return its value |
| ReadResHeader | public | Read a resource header from the stream. |
| ReadWord | public | Read a word from the stream and return its value. |
| Seek | public | Sets the current position in the stream |
| Write | public | Writes data from a buffer to the stream and returns the number of bytes written. |
| WriteAnsiString | public | Write an ansistring to the stream. |
| WriteBuffer | public | Writes data from a buffer to the stream |
| WriteBufferData | public | |
| WriteByte | public | Write a byte to the stream. |
| WriteComponent | public | Write component data to the stream |
| WriteComponentRes | public | Write resource header and component data to a stream |
| WriteData | public | |
| WriteDescendent | public | Write descendent of a component |
| WriteDescendentRes | public | Write descendent of a component as resource |
| WriteDWord | public | Write a DWord to the stream. |
| WriteQWord | public | Write a QWord value to the stream |
| WriteResourceHeader | public | Write resource header to the stream |
| WriteWord | public | Write a word to the stream. |
TObject
| Member | Visibility | Description |
|---|---|---|
| AfterConstruction | public | Method called after the constructor was called. |
| BeforeDestruction | public | Method called before the destructor is called. |
| ClassInfo | public | Return a pointer to the type information for this class. |
| ClassName | public | Return the current class name. |
| ClassNameIs | public | Check whether the class name equals the given name. |
| ClassParent | public | Return the parent class. |
| ClassType | public | Return a "class of" pointer for the current class |
| CleanupInstance | public | Finalize the class instance. |
| Create | public | TObject Constructor |
| DefaultHandler | public | Default handler for integer message handlers. |
| DefaultHandlerStr | public | Default handler for string messages. |
| Destroy | public | TObject destructor. |
| Dispatch | public | Dispatch an integer message |
| DispatchStr | public | Dispatch a string message. |
| Equals | public | Check if two objects are equal. |
| FieldAddress | public | Return the address of a field. |
| Free | public | Check for Nil and call destructor. |
| FreeInstance | public | Clean up instance and free the memory reserved for the instance. |
| GetHashCode | public | Return a hash code for the object |
| GetInterface | public | Return a reference to an interface |
| GetInterfaceByStr | public | Return an interface based on its GUID |
| GetInterfaceEntry | public | Return the interface table entry by GUID |
| GetInterfaceEntryByStr | public | Return the interface table entry by string |
| GetInterfaceTable | public | Return a pointer to the table of implemented interfaces for a class |
| GetInterfaceWeak | public | Get a reference to an interface, not increasing the reference count |
| InheritsFrom | public | Check whether class is an ancestor. |
| InitInstance | public | Initialize a new class instance. |
| InstanceSize | public | Return the size of an instance. |
| MethodAddress | public | Return the address of a method |
| MethodName | public | Return the name of a method. |
| newinstance | public | Allocate memory on the heap for a new instance |
| QualifiedClassName | public | Fully qualified classname |
| SafeCallException | public | Handle exception object |
| StringMessageTable | public | Return a pointer to the string message table. |
| ToString | public | Return a string representation for the object |
| UnitName | public | Unit name |