vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

ScePaf_stub




Using this library in your project

Include the header file in your project:


Link the library to the executable:

ScePaf_stub




Using this library in your project

Include the header file in your project:


Link the library to the executable:

ScePaf_stub




Using this library in your project

Include the header file in your project:

#include <psp2/paf.h>


Link the library to the executable:

ScePaf_stub



Functions

int scePafGraphicsUpdateCurrentWave (SceUInt32 index, SceFloat32 update_interval)
 Update the current wave. More...
 
 VITASDK_BUILD_ASSERT_EQ (0x18, ScePafDateTime)
 
int scePafGetCurrentClockLocalTime (ScePafDateTime *data)
 
 VITASDK_BUILD_ASSERT_EQ (0x68, ScePafSha1Context)
 
int scePafSha1Init (ScePafSha1Context *context)
 
int scePafSha1Update (ScePafSha1Context *context, const void *data, SceSize length)
 
int scePafSha1Result (ScePafSha1Context *context, void *dst)
 
 VITASDK_BUILD_ASSERT_EQ (0x60, ScePafHeapContext)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, ScePafHeapOpt)
 
void scePafCreateHeap (ScePafHeapContext *context, void *membase, SceSize size, const char *name, ScePafHeapOpt *opt)
 
void scePafDeleteHeap (ScePafHeapContext *context)
 
void * scePafMallocWithContext (ScePafHeapContext *context, SceSize len)
 
void scePafFreeWithContext (ScePafHeapContext *context, void *ptr)
 
void * scePafMallocAlignWithContext (ScePafHeapContext *context, SceUInt32 align, SceSize len)
 
void * scePafReallocWithContext (ScePafHeapContext *context, void *ptr, SceSize len)
 
void * sce_paf_malloc (SceSize size)
 
void sce_paf_free (void *ptr)
 
void * sce_paf_memalign (SceSize align, SceSize length)
 Alloc memory with align. More...
 
void * sce_paf_memchr (const void *src, int ch, SceSize length)
 
int sce_paf_memcmp (const void *s1, const void *s2, SceSize n)
 
void * sce_paf_memcpy (void *dst, const void *src, SceSize len)
 
void * sce_paf_memset (void *dst, int ch, SceSize len)
 
void * sce_paf_memmove (void *dst, const void *src, SceSize len)
 
int sce_paf_snprintf (char *dst, unsigned int max, const char *fmt,...)
 
int sce_paf_vsnprintf (char *dst, unsigned int max, const char *fmt, va_list arg)
 
int sce_paf_bcmp (const void *ptr1, const void *ptr2, SceSize num)
 
void * sce_paf_bcopy (void *dst, const void *src, SceSize n)
 
void * sce_paf_bzero (void *dst, SceSize n)
 
char * sce_paf_strchr (const char *s, int ch)
 
int sce_paf_strcmp (const char *s1, const char *s2)
 
size_t sce_paf_strlen (const char *s)
 
int sce_paf_strcasecmp (const char *s1, const char *s2)
 
int sce_paf_strncasecmp (const char *s1, const char *s2, SceSize len)
 
int sce_paf_strncmp (const char *s1, const char *s2, SceSize len)
 
char * sce_paf_strncpy (char *dst, const char *src, SceSize len)
 
char * sce_paf_strrchr (const char *s, int ch)
 
double sce_paf_strtod (const char *nptr, char **endptr)
 string to double More...
 

Data Structure Documentation

◆ ScePafDateTime

struct ScePafDateTime
Data Fields
SceDateTime data
int data_0x10
int data_0x14

◆ ScePafSha1Context

struct ScePafSha1Context
Data Fields
uint32_t h[5]
char unk[0x54]

◆ ScePafHeapContext

struct ScePafHeapContext
Data Fields
void * vtable
void * heap
void * membase
SceSize size
char name[0x20]
SceChar8 is_import_membase
SceChar8 is_skip_debug_msg
char data_0x32
char data_0x33
int data_0x34
SceKernelLwMutexWork lw_mtx
SceUID memblk_id
SceInt32 mode

◆ ScePafHeapOpt

struct ScePafHeapOpt
Data Fields
int a1
int a2
SceChar8 is_skip_debug_msg
char a3[3]
SceInt32 mode
int a5

Function Documentation

◆ scePafGraphicsUpdateCurrentWave()

int scePafGraphicsUpdateCurrentWave ( SceUInt32  index,
SceFloat32  update_interval 
)

Update the current wave.

Parameters
[in]index- The index from 0 to 0x1F within range.
[in]update_interval- The update interval. 0.0f to it will change soon. 1.0f will slowly turn into an updated wave after 1 second, just like when you change it the normal way.
Returns
0 on success, <0 otherwise.

◆ VITASDK_BUILD_ASSERT_EQ() [1/4]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
ScePafDateTime   
)

◆ scePafGetCurrentClockLocalTime()

int scePafGetCurrentClockLocalTime ( ScePafDateTime data)

◆ VITASDK_BUILD_ASSERT_EQ() [2/4]

VITASDK_BUILD_ASSERT_EQ ( 0x68  ,
ScePafSha1Context   
)

◆ scePafSha1Init()

int scePafSha1Init ( ScePafSha1Context context)

◆ scePafSha1Update()

int scePafSha1Update ( ScePafSha1Context context,
const void *  data,
SceSize  length 
)

◆ scePafSha1Result()

int scePafSha1Result ( ScePafSha1Context context,
void *  dst 
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/4]

VITASDK_BUILD_ASSERT_EQ ( 0x60  ,
ScePafHeapContext   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/4]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
ScePafHeapOpt   
)

◆ scePafCreateHeap()

void scePafCreateHeap ( ScePafHeapContext context,
void *  membase,
SceSize  size,
const char *  name,
ScePafHeapOpt opt 
)

◆ scePafDeleteHeap()

void scePafDeleteHeap ( ScePafHeapContext context)

◆ scePafMallocWithContext()

void* scePafMallocWithContext ( ScePafHeapContext context,
SceSize  len 
)

◆ scePafFreeWithContext()

void scePafFreeWithContext ( ScePafHeapContext context,
void *  ptr 
)

◆ scePafMallocAlignWithContext()

void* scePafMallocAlignWithContext ( ScePafHeapContext context,
SceUInt32  align,
SceSize  len 
)

◆ scePafReallocWithContext()

void* scePafReallocWithContext ( ScePafHeapContext context,
void *  ptr,
SceSize  len 
)

◆ sce_paf_malloc()

void* sce_paf_malloc ( SceSize  size)

◆ sce_paf_free()

void sce_paf_free ( void *  ptr)

◆ sce_paf_memalign()

void* sce_paf_memalign ( SceSize  align,
SceSize  length 
)

Alloc memory with align.

Parameters
[in]alignThe align size
[in]lengthThe alloc length
Returns
memory pointer or NULL

◆ sce_paf_memchr()

void* sce_paf_memchr ( const void *  src,
int  ch,
SceSize  length 
)

◆ sce_paf_memcmp()

int sce_paf_memcmp ( const void *  s1,
const void *  s2,
SceSize  n 
)

◆ sce_paf_memcpy()

void* sce_paf_memcpy ( void *  dst,
const void *  src,
SceSize  len 
)

◆ sce_paf_memset()

void* sce_paf_memset ( void *  dst,
int  ch,
SceSize  len 
)

◆ sce_paf_memmove()

void* sce_paf_memmove ( void *  dst,
const void *  src,
SceSize  len 
)

◆ sce_paf_snprintf()

int sce_paf_snprintf ( char *  dst,
unsigned int  max,
const char *  fmt,
  ... 
)

◆ sce_paf_vsnprintf()

int sce_paf_vsnprintf ( char *  dst,
unsigned int  max,
const char *  fmt,
va_list  arg 
)

◆ sce_paf_bcmp()

int sce_paf_bcmp ( const void *  ptr1,
const void *  ptr2,
SceSize  num 
)

◆ sce_paf_bcopy()

void* sce_paf_bcopy ( void *  dst,
const void *  src,
SceSize  n 
)

◆ sce_paf_bzero()

void* sce_paf_bzero ( void *  dst,
SceSize  n 
)

◆ sce_paf_strchr()

char* sce_paf_strchr ( const char *  s,
int  ch 
)

◆ sce_paf_strcmp()

int sce_paf_strcmp ( const char *  s1,
const char *  s2 
)

◆ sce_paf_strlen()

size_t sce_paf_strlen ( const char *  s)

◆ sce_paf_strcasecmp()

int sce_paf_strcasecmp ( const char *  s1,
const char *  s2 
)

◆ sce_paf_strncasecmp()

int sce_paf_strncasecmp ( const char *  s1,
const char *  s2,
SceSize  len 
)

◆ sce_paf_strncmp()

int sce_paf_strncmp ( const char *  s1,
const char *  s2,
SceSize  len 
)

◆ sce_paf_strncpy()

char* sce_paf_strncpy ( char *  dst,
const char *  src,
SceSize  len 
)

◆ sce_paf_strrchr()

char* sce_paf_strrchr ( const char *  s,
int  ch 
)

◆ sce_paf_strtod()

double sce_paf_strtod ( const char *  nptr,
char **  endptr 
)

string to double

Parameters
[in]nptrThe input float string
[out]endptrThe float string endpoint
Returns
parsed value