Hosted by
|
with Ada.Unchecked_Deallocation;
package body Depixel is
function Create
(Byte_Count : in Positive)
return Bit_Buffer_Access
is
Result : Bit_Buffer_Access := new Bit_Buffer(Byte_Count);
begin
for Index in Natural_Triple loop
Result.Internal(Index) := Bit_Buffers.Create(Byte_Count);
end loop;
for Index in Natural_Triple loop
Clear(Result);
end loop;
return Result;
end Create;
|