[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
X11R6 Technical Reference

_XAllocScratch Extension Function

Purpose

Returns a scratch buffer.

Library

Enhanced X-Windows Library (libX11.a)

C Syntax

char *_XAllocScratch(DisplayID, NumberBytes)
Display *DisplayID;
unsigned long NumberBytes;

Description

The _XAllocScratch extension function returns a scratch buffer. If you need a single scratch buffer inside a critical section to pack and unpack data to and from wire protocol, the general memory allocators may be too expensive to use (particularly in output routines, which are performance critical). Use of a routine with this storage must only be used inside the critical section of your stub.

Parameters

DisplayID Specifies the ID of the display.
NumberBytes Specifies the length, in bytes, of the buffer to be allocated.

Related Information

Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.

AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]