Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// Copyright (c) 2022, 2024 blackshirt. All rights reserved.
// Use of this source code is governed by a MIT License
// that can be found in the LICENSE file.
module asn1
// ANY DEFINED BY
//
pub struct AnyDefinedBy {
pub:
// default to null element
params Element = Null{}
}
// AnyDefinedBy.new creates a new ANY DEFINED BY element.
pub fn AnyDefinedBy.new(params Element) AnyDefinedBy {
return AnyDefinedBy{params}
}
// tag returns the underlying tag of ANY DEFINED BY element.
pub fn (a AnyDefinedBy) tag() Tag {
return a.params.tag()
}
// payload returns the underlying payload of ANY DEFINED BY element.
pub fn (a AnyDefinedBy) payload() ![]u8 {
return a.params.payload()!
}