with GNATCOM.Errors;

package body MSHTML.ICanvasPixelArrayData_Interface is

   procedure Initialize (This : in out ICanvasPixelArrayData_Type) is
   begin
      Set_IID (This, IID_ICanvasPixelArrayData);
   end Initialize;

   function Pointer (This : ICanvasPixelArrayData_Type)
     return Pointer_To_ICanvasPixelArrayData
   is
   begin
      return To_Pointer_To_ICanvasPixelArrayData (Address (This));
   end Pointer;

   procedure Attach (This    : in out ICanvasPixelArrayData_Type;
                     Pointer : in     Pointer_To_ICanvasPixelArrayData)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure GetBufferPointer
     (This          : ICanvasPixelArrayData_Type;
      ppBuffer      : Pointer_To_Pointer_To_unsigned_char;
      pBufferLength : GNATCOM.Types.Pointer_To_unsigned_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetBufferPointer
         (Pointer (This),
          ppBuffer,
          pBufferLength));

   end GetBufferPointer;

end MSHTML.ICanvasPixelArrayData_Interface;

