# unit objects

### Standard base objects

author: Tomasz Biela (Tebe)

This unit implements Memory stream objects.

## Types:

name: | type: | description:
--- | --- | ---
TMemoryStream | Object Position: cardinal; Size: cardinal; procedure Create; procedure ReadBuffer(var Buffer; Count: word); register; assembler; procedure WriteBuffer(var Buffer; Count: word); register; assembler; function ReadByte: Byte; assembler; function ReadWord: Word; assembler; function ReadDWord: Cardinal; assembler; procedure WriteByte(b: Byte); assembler; procedure WriteWord(w: Word); assembler; procedure WriteDWord(d: Cardinal); assembler; end; |

## Interface:

name: | description:
--- | ---
TMemoryStream.Create | #### procedure TMemoryStream.Create;
TMemoryStream.ReadBuffer | #### procedure TMemoryStream.ReadBuffer(var Buffer; Count: word); register; assembler;
TMemoryStream.WriteBuffer | #### procedure TMemoryStream.WriteBuffer(var Buffer; Count: word); register; assembler;
TMemoryStream.ReadByte | #### function TMemoryStream.ReadByte: Byte; assembler;
TMemoryStream.ReadWord | #### function TMemoryStream.ReadWord: Word; assembler;
TMemoryStream.ReadDWord | #### function TMemoryStream.ReadDWord: Cardinal; assembler;
TMemoryStream.WriteByte | #### procedure TMemoryStream.WriteByte(b: Byte); assembler;
TMemoryStream.WriteWord | #### procedure TMemoryStream.WriteWord(w: Word); assembler;
TMemoryStream.WriteDWord | #### procedure TMemoryStream.WriteDWord(d: Cardinal); assembler;