Name

SPVM::Net::SSLeay::ASN1_ENUMERATED - ASN1_ENUMERATED Data Structure in OpenSSL

Description

Net::SSLeay::ASN1_ENUMERATED class in SPVM represents ASN1_ENUMERATED data structure in OpenSSL.

Usage

use Net::SSLeay::ASN1_ENUMERATED;

Class Methods

new

static method new : Net::SSLeay::ASN1_ENUMERATED ();

Calls native ASN1_ENUMERATED_new function, creates a new Net::SSLeay::ASN1_ENUMERATED object, sets the pointer value of the object to the return value of the native function, and returns the new object.

Instance Methods

get_int64

method get_int64 : long ();

Calls native ASN1_ENUMERATED_get_int64 function given an appropriate argument, the pointer value of the instance, and returns the output value of the first argument.

Exceptions:

If ASN1_ENUMERATED_get_int64 failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

set_int64

method set_int64 : void ($r : long);

Calls native ASN1_ENUMERATED_set_int64 function given the pointer value of the instance, $r.

Exceptions:

If ASN1_ENUMERATED_set_int64 failed, an exception is thrown with eval_error_id set to the basic type ID of Net::SSLeay::Error class.

DESTROY

method DESTROY : void ();

Calls native ASN1_ENUMERATED_free function given the pointer value of the instance unless no_free flag of the instance is a true value.

See Also

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License