hvs_base64_module Module

This module provides the methods for base64Encoding.


Uses

  • module~~hvs_base64_module~~UsesGraph module~hvs_base64_module hvs_base64_module hvs_sizeof_module hvs_sizeof_module module~hvs_base64_module->hvs_sizeof_module iso_c_binding iso_c_binding module~hvs_base64_module->iso_c_binding module~env_module env_module module~hvs_base64_module->module~env_module aotus_module aotus_module module~env_module->aotus_module flu_binding flu_binding module~env_module->flu_binding iso_fortran_env iso_fortran_env module~env_module->iso_fortran_env mpi mpi module~env_module->mpi

Used by

  • module~~hvs_base64_module~~UsedByGraph module~hvs_base64_module hvs_base64_module module~hvs_vtk_module hvs_vtk_module module~hvs_vtk_module->module~hvs_base64_module module~hvs_output_module hvs_output_module module~hvs_output_module->module~hvs_vtk_module module~tem_tracking_module tem_tracking_module module~tem_tracking_module->module~hvs_output_module

Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: EncoderLen = 4
integer, public, parameter :: EncoderBlockLen = 3

Interfaces

interface

Convert one block of input (3 Bytes) into its base64 representation (4 Bytes).

  • public function EncodeBlock(input, output, iplen, oplen) bind(c, name='encodeblock')

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: input

    input character stream in ascii

    type(c_ptr), value :: output

    output character stream in base64

    integer(kind=c_int), intent(in), value :: iplen

    length of the input stream

    integer(kind=c_int), value :: oplen

    length of the output stream

    Return Value integer(kind=c_int)

    Result, indicating the status of encode

interface

Interface to convert ascii to binary base64 encoder

  • public function EncodeIndex(input, output, iplen, ind, ipindex) bind(c, name='EncodeIndex')

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: input

    input character stream in ascii

    type(c_ptr), value :: output

    output character stream in base64

    integer(kind=c_int), intent(in), value :: iplen

    length of the input stream

    integer(kind=c_int), value :: ind

    current length

    integer(kind=c_int), value :: ipindex

    current length

    Return Value integer(kind=c_int)

    Result, indicating the status of encode

interface

Interface to convert ascii to binary base64 encoder

  • public function Base64Encode(input, output, iplen, oplen, ipindex) bind(c, name='Base64Encode')

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: input

    input character stream in ascii

    type(c_ptr), value :: output

    output character stream in base64

    integer(kind=c_int), intent(in), value :: iplen

    length of the input stream

    integer(kind=c_int), value :: oplen

    length of the output stream

    integer(kind=c_int), value :: ipindex

    current length

    Return Value integer(kind=c_int)

    Result, indicating the status of encode

public interface convert_to_Base64

  • public subroutine real32_to_base64(indata, iplen, outfile)

    this routine encodes data of type real32 to base64 format

    Arguments

    Type IntentOptional Attributes Name
    real(kind=c_float), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine real64_to_base64(indata, iplen, outfile)

    this routine encodes data of type real64 to base64 format

    Arguments

    Type IntentOptional Attributes Name
    real(kind=c_double), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine char_to_base64(indata, iplen, outfile)

    this routine encodes data of type char to base64 format

    Arguments

    Type IntentOptional Attributes Name
    character(kind=c_char, len=1), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int8_to_base64(indata, iplen, outfile)

    this routine encodes data of type int8 to base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int_least8_t), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int32_to_base64(indata, iplen, outfile)

    this routine encodes data of type int32 to base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int64_to_base64(indata, iplen, outfile)

    this routine encodes data of type int64 to base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int_least64_t), intent(in), target :: indata(iplen)

    data to be encoded

    integer, intent(in) :: iplen

    size of data to be encoded

    integer, intent(in) :: outfile

    output file unit

public interface convert_to_Base64_single

  • public subroutine real32_to_base64_single(indata, outfile)

    this routine encodes a single variable of type real32 into base64 format

    Arguments

    Type IntentOptional Attributes Name
    real(kind=c_float), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine real64_to_base64_single(indata, outfile)

    this routine encodes a single variable of type real64 into base64 format

    Arguments

    Type IntentOptional Attributes Name
    real(kind=c_double), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine char_to_base64_single(indata, outfile)

    this routine encodes a single variable of type char into base64 format

    Arguments

    Type IntentOptional Attributes Name
    character(kind=c_char, len=1), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int8_to_base64_single(indata, outfile)

    this routine encodes a single variable of type int8 into base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int_least8_t), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int32_to_base64_single(indata, outfile)

    this routine encodes a single variable of type int32 into base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit

  • public subroutine int64_to_base64_single(indata, outfile)

    this routine encodes a single variable of type int64 into base64 format

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int_least64_t), intent(in), target :: indata

    data to be encoded

    integer, intent(in) :: outfile

    output file unit


Subroutines

public subroutine real64_to_base64(indata, iplen, outfile)

this routine encodes data of type real64 to base64 format

Arguments

Type IntentOptional Attributes Name
real(kind=c_double), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine real64_to_base64_single(indata, outfile)

this routine encodes a single variable of type real64 into base64 format

Arguments

Type IntentOptional Attributes Name
real(kind=c_double), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine real32_to_base64(indata, iplen, outfile)

this routine encodes data of type real32 to base64 format

Arguments

Type IntentOptional Attributes Name
real(kind=c_float), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine real32_to_base64_single(indata, outfile)

this routine encodes a single variable of type real32 into base64 format

Arguments

Type IntentOptional Attributes Name
real(kind=c_float), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int8_to_base64(indata, iplen, outfile)

this routine encodes data of type int8 to base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int_least8_t), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int8_to_base64_single(indata, outfile)

this routine encodes a single variable of type int8 into base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int_least8_t), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int32_to_base64(indata, iplen, outfile)

this routine encodes data of type int32 to base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int32_to_base64_single(indata, outfile)

this routine encodes a single variable of type int32 into base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int64_to_base64(indata, iplen, outfile)

this routine encodes data of type int64 to base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int_least64_t), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine int64_to_base64_single(indata, outfile)

this routine encodes a single variable of type int64 into base64 format

Arguments

Type IntentOptional Attributes Name
integer(kind=c_int_least64_t), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine char_to_base64(indata, iplen, outfile)

this routine encodes data of type char to base64 format

Arguments

Type IntentOptional Attributes Name
character(kind=c_char, len=1), intent(in), target :: indata(iplen)

data to be encoded

integer, intent(in) :: iplen

size of data to be encoded

integer, intent(in) :: outfile

output file unit

public subroutine char_to_base64_single(indata, outfile)

this routine encodes a single variable of type char into base64 format

Arguments

Type IntentOptional Attributes Name
character(kind=c_char, len=1), intent(in), target :: indata

data to be encoded

integer, intent(in) :: outfile

output file unit