.. index:: 
  !DocumentLibrary.loadDocumentTemplateBuffer Method
  
.. _id3_document_document_library_load_document_template_buffer_class_method:

===============================================================================
DocumentLibrary.loadDocumentTemplateBuffer Method
===============================================================================

Module: :ref:`DocumentLibrary<id3_document_document_library_class>`

Definition
----------

Loads a document template from a data buffer.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        load_document_template_buffer(buffer: bytearray) -> None

      **Parameters**

        .. line-block::

          ``buffer`` bytearray
          :guilabel:`in` A buffer containing the document template data.


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static void loadDocumentTemplateBuffer(Uint8List? buffer)

      **Parameters**

        .. line-block::

          ``buffer`` Uint8List
          :guilabel:`in` A buffer containing the document template data.


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static void LoadDocumentTemplateBuffer(byte[] buffer)

      **Parameters**

        .. line-block::

          ``buffer`` byte[]
          :guilabel:`in` A buffer containing the document template data.


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static void loadDocumentTemplateBuffer(byte[] buffer) throws DocumentException

      **Parameters**

        .. line-block::

          ``buffer`` byte[]
          :guilabel:`in` A buffer containing the document template data.


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func loadDocumentTemplateBuffer(buffer: [UInt8]) throws

      **Parameters**

        .. line-block::

          ``buffer`` [UInt8]
          :guilabel:`in` A buffer containing the document template data.


      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3DocumentLibrary_LoadDocumentTemplateBuffer (
            unsigned char * buffer, 
            int bufferSize)

      **Parameters**

        .. line-block::

          ``buffer`` unsigned char *
          :guilabel:`in` A buffer containing the document template data.

          ``bufferSize`` int
          :guilabel:`in` Size of the 'buffer' buffer.


      **Returns**

        .. line-block::

          ``int``
          An error code.
          See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.


