INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "External data & length buffers to access API functions"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: dale
class CHUNK
inherit

MEMORY
export
{NONE}
all
redefine
dispose
end

DALE_SERVER
end
creation

make
feature -- Attributes:

max_size: INTEGER

at_data: POINTER

at_length: INTEGER
feature -- Commands:

make
-- creation procedure

allocate (maxsz: INTEGER)
-- creation procedure
require
valid_size: maxsz >= 0

close
-- release all allocated memory
ensure
deallocated: not is_allocated
feature -- Queries:

at_length_ptr: POINTER
-- ...

length: INTEGER
-- ...

at_data_with_offset (offs: INTEGER): POINTER
-- get pointer at data with specified offset
require
valid_offset: offs >= 0

is_null_length: BOOLEAN
-- ...

is_allocated: BOOLEAN
-- ...
feature -- Settings:

set_length (len: INTEGER)
-- ...

set_null_length
-- ...
end -- class CHUNK

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES