跳到主要内容

libraries/eosiolib/capi/eosio/types.h

More...

Types

Name
typedef uint64_tcapi_name

Functions

Name
structattribute((deprecated("newer public key types cannot be represented as a fixed size structure", "char[]")) )
structattribute((deprecated("newer signature types cannot be represented as a fixed size structure", "char[]")) )
structALIGNED(capi_checksum256 )
structALIGNED(capi_checksum160 )
structALIGNED(capi_checksum512 )

Defines

Name
ALIGNED(X)

Detailed Description

Copyright: defined in eos/LICENSE

Types Documentation

typedef capi_name

typedef uint64_t capi_name;

Functions Documentation

function attribute

struct __attribute__(
(deprecated("newer public key types cannot be represented as a fixed size structure", "char[]"))
)

EOSIO Public Key. K1 and R1 keys are 34 bytes. Newer keys can be variable-sized

function attribute

struct __attribute__(
(deprecated("newer signature types cannot be represented as a fixed size structure", "char[]"))
)

EOSIO Signature. K1 and R1 signatures are 66 bytes. Newer signatures can be variable-sized

function ALIGNED

struct ALIGNED(
capi_checksum256
)

256-bit hash

function ALIGNED

struct ALIGNED(
capi_checksum160
)

160-bit hash

function ALIGNED

struct ALIGNED(
capi_checksum512
)

512-bit hash

Macros Documentation

define ALIGNED

#define ALIGNED(
X
)
__attribute__ ((aligned (16))) X

Macro to align/overalign a type to ensure calls to intrinsics with pointers/references are properly aligned

Source code


#pragma once

#include <stdint.h>
#include <stdbool.h>
#include <wchar.h>

/* macro to align/overalign a type to ensure calls to intrinsics with pointers/references are properly aligned */
#define ALIGNED(X) __attribute__ ((aligned (16))) X

typedef uint64_t capi_name;

struct __attribute__((deprecated("newer public key types cannot be represented as a fixed size structure", "char[]")))
capi_public_key {
char data[34];
};

struct __attribute__((deprecated("newer signature types cannot be represented as a fixed size structure", "char[]")))
capi_signature {
uint8_t data[66];
};

struct ALIGNED(capi_checksum256) {
uint8_t hash[32];
};

struct ALIGNED(capi_checksum160) {
uint8_t hash[20];
};

struct ALIGNED(capi_checksum512) {
uint8_t hash[64];
};

Updated on 2022-12-05 at 15:38:08 +0000