Ags.FileUtil¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
app_encoding  | 
r/w  | 
||
converter  | 
r/w  | 
||
encoding  | 
r/w  | 
||
file_version  | 
r/w  | 
||
reverse_converter  | 
r/w  | 
Methods¶
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class Ags.FileUtil¶
 - classmethod alloc(app_encoding, encoding)¶
 - Parameters:
 - Returns:
 a new
Ags.FileUtil-struct- Return type:
 
Allocate
Ags.FileUtil-structNew in version 6.3.0.
- copy()¶
 - Returns:
 a pointer of the new
Ags.FileUtil-struct- Return type:
 
Create a copy of self.
New in version 6.3.0.
- free()¶
 Free the memory of self.
New in version 6.3.0.
- get_app_encoding()¶
 - Returns:
 the application encoding
- Return type:
 
Get application encoding of self.
New in version 6.3.0.
- get_complex(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 the complex floating point number
- Return type:
 
Get complex floating point number from string.
New in version 6.3.0.
- get_double(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 the double precision size floating point number
- Return type:
 
Get double precision size floating point number from string.
New in version 6.3.0.
- get_float(str)¶
 - Parameters:
 str (
str) – the string- Returns:
 the arbitary size floating point number
- Return type:
 
Get arbitary size floating point number from string.
New in version 6.3.0.
- get_int(str)¶
 - 
Get integer from string.
New in version 6.3.0.
 
- get_int64(str)¶
 - Parameters:
 str (
str) – the string to convert- Returns:
 the converted long long integer
- Return type:
 
Get long long integer from string.
New in version 6.3.0.
- get_string(str, max_length)¶
 - Parameters:
 - Returns:
 the newly allocated string
- Return type:
 
Get string from str.
New in version 6.3.0.
- get_uint(str)¶
 - Parameters:
 str (
str) – the string to convert- Returns:
 the converted unsigned integer
- Return type:
 
Get unsigned integer from string.
New in version 6.3.0.
- get_uint64(str)¶
 - Parameters:
 str (
str) – the string to convert- Returns:
 the converted unsigned long long integer
- Return type:
 
Get unsigned long long integer.
New in version 6.3.0.
- put_complex(value)¶
 - Parameters:
 value (
Ags.Complex) – the value- Returns:
 the newly allocated string
- Return type:
 
Put complex floating point number to string.
New in version 6.3.0.
- put_double(value)¶
 - 
Put double precision size floating point number to string.
New in version 6.3.0.
 
- put_float(value)¶
 - 
Put arbitary size floating point number to string.
New in version 6.3.0.
 
- put_int(value)¶
 - 
Put integer to string.
New in version 6.3.0.
 
- put_int64(value)¶
 - 
Put long long integer to string.
New in version 6.3.0.
 
- put_string(str, length)¶
 - Parameters:
 - Returns:
 the newly allocated string
- Return type:
 
Put str to string.
New in version 6.3.0.
- put_uint(value)¶
 - 
Put unsigned integer to string.
New in version 6.3.0.
 
- put_uint64(value)¶
 - 
Put unsigned long long integer to string.
New in version 6.3.0.