MySQL 9.0.0
Source Code Documentation
vector_conversion.h File Reference
#include <errno.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <cstring>
#include "sql_string.h"

Go to the source code of this file.

Functions

static bool from_string_to_vector (const char *input, uint32_t input_len, char *const output, uint32_t *max_output_dims)
 
static bool from_vector_to_string (const char *const input, uint32_t input_dims, char *const output, uint32_t *max_output_len)
 
static uint32_t get_dimensions (const uint32_t length, const uint32_t precision)
 

Function Documentation

◆ from_string_to_vector()

static bool from_string_to_vector ( const char *  input,
uint32_t  input_len,
char *const  output,
uint32_t *  max_output_dims 
)
inlinestatic

◆ from_vector_to_string()

static bool from_vector_to_string ( const char *const  input,
uint32_t  input_dims,
char *const  output,
uint32_t *  max_output_len 
)
inlinestatic

◆ get_dimensions()

static uint32_t get_dimensions ( const uint32_t  length,
const uint32_t  precision 
)
inlinestatic