General Info

Interface: MemMan
Files: lib/memman.h
Last change: 11/02/2002
Author: Luiz Henrique Shigunov
Description
Functions
  • 0x00 - Compare - Compare two memory areas
  • 0x01 - Copy - Copy a memory area
  • 0x02 - FindByte - Find a byte in a memory area
  • 0x03 - Move - Move a memory area
  • 0x04 - Set - Fill a memory area
  • Description

    This page describes MemMan interface.

    0x00 - Compare

    Syntax

    int Compare(const void *m1, const void *m2, unsigned int count);

    Description

    This function compares count bytes from m1 with m2.

    Return value

    0x01 - Copy

    Syntax

    void Copy(void *dest, const void *src, unsigned int count);

    Description

    This function copies count bytes from src to dest.

    The areas CANNOT overlay and dest must be big enough.

    Return value

    Nothing.

    0x02 - FindByte

    Syntax

    void *FindByte(const void *mem, int c, unsigned int count);

    Description

    This function finds the first occurrence of byte c in mem, no more than count bytes will be searched.

    Return value

    0x03 - Move

    Syntax

    void Move(void *dest, const void *src, unsigned int count);

    Description

    This function copies count bytes from src to dest.

    The memory areas CAN overlay and dest must be big enough.

    Return value

    Nothing.

    0x04 - Set

    Syntax

    void Set(void *mem, unsigned int c, unsigned int count);

    Description

    This function fills count bytes of mem with byte c.

    Return value

    Nothing.