FreeRDP
encoded_types.c File Reference
#include <freerdp/config.h>
#include <freerdp/channels/log.h>
#include <freerdp/utils/encoded_types.h>
#include <math.h>

Macros

#define TAG   CHANNELS_TAG("encoded_types")
 

Enumerations

enum  EncodedTypeByteCount {
  ONE_BYTE_VAL , TWO_BYTE_VAL , THREE_BYTE_VAL , FOUR_BYTE_VAL ,
  FIVE_BYTE_VAL , SIX_BYTE_VAL , SEVEN_BYTE_VAL , EIGHT_BYTE_VAL
}
 
enum  EncodedTypeSign { POSITIVE_VAL , NEGATIVE_VAL }
 

Functions

BOOL freerdp_read_four_byte_signed_integer (wStream *s, INT32 *value)
 
BOOL freerdp_write_four_byte_signed_integer (wStream *s, INT32 value)
 
BOOL freerdp_read_four_byte_float (wStream *s, double *value)
 
BOOL freerdp_read_four_byte_float_exp (wStream *s, double *value, BYTE *exp)
 
BOOL freerdp_write_four_byte_float (wStream *s, double value)
 

Macro Definition Documentation

◆ TAG

#define TAG   CHANNELS_TAG("encoded_types")

FreeRDP: A Remote Desktop Protocol Implementation

Helper functions to parse encoded types into regular ones

Copyright 2023 Pascal Nowack Pasca.nosp@m.l.No.nosp@m.wack@.nosp@m.gmx..nosp@m.de

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Enumeration Type Documentation

◆ EncodedTypeByteCount

Enumerator
ONE_BYTE_VAL 
TWO_BYTE_VAL 
THREE_BYTE_VAL 
FOUR_BYTE_VAL 
FIVE_BYTE_VAL 
SIX_BYTE_VAL 
SEVEN_BYTE_VAL 
EIGHT_BYTE_VAL 

◆ EncodedTypeSign

Enumerator
POSITIVE_VAL 
NEGATIVE_VAL 

Function Documentation

◆ freerdp_read_four_byte_float()

BOOL freerdp_read_four_byte_float ( wStream s,
double *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_read_four_byte_float_exp()

BOOL freerdp_read_four_byte_float_exp ( wStream s,
double *  value,
BYTE exp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_read_four_byte_signed_integer()

BOOL freerdp_read_four_byte_signed_integer ( wStream s,
INT32 *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_write_four_byte_float()

BOOL freerdp_write_four_byte_float ( wStream s,
double  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_write_four_byte_signed_integer()

BOOL freerdp_write_four_byte_signed_integer ( wStream s,
INT32  value 
)
Here is the call graph for this function:
Here is the caller graph for this function: