Documentation ¶
Index ¶
- func ParseRecovery(s *Structure, err *error)
- func ReadStructures() (*EntryPoint, []*Structure, error)
- func U16(data []byte) uint16
- func U32(data []byte) uint32
- func U64(data []byte) uint64
- type EntryPoint
- type Header
- type Structure
- func (s *Structure) DataLength() int
- func (s *Structure) FormattedCount() int
- func (s *Structure) GetByte(index int) byte
- func (s *Structure) GetBytes(start, end int) []byte
- func (s *Structure) GetString(offset int) string
- func (s *Structure) IsOverFlow(index int) bool
- func (s *Structure) String() string
- func (s *Structure) Type() uint8
- func (s *Structure) U16(start, end int) uint16
- func (s *Structure) U32(start, end int) uint32
- func (s *Structure) U64(start, end int) uint64
- type StructureType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadStructures ¶
func ReadStructures() (*EntryPoint, []*Structure, error)
ReadStructures 读取smbios结构数据
Types ¶
type EntryPoint ¶
type EntryPoint struct { Address int `json:"address,omitempty"` Size int `json:"size,omitempty"` Major int `json:"major,omitempty"` Minor int `json:"minor,omitempty"` Revision int `json:"revision,omitempty"` }
EntryPoint EPS
func NewEntryPoint ¶
func NewEntryPoint(major, minor, rev, addr, size int) *EntryPoint
NewEntryPoint todo
type Structure ¶
type Structure struct { Header Header Formatted []byte Strings []string // contains filtered or unexported fields }
A Structure is an SMBIOS structure.
func (*Structure) FormattedCount ¶
FormattedCount 格式化数据队列长度, 避免索引出界
type StructureType ¶
type StructureType byte
StructureType Structure definition type
const ( BIOS StructureType = iota System BaseBoard Chassis Processor Controller Module Cache PortConnector SystemSlots OnBoardDevices OEMStrings SystemConfigurationOptions BIOSLanguage GroupAssociations SystemEventLog PhysicalMemoryArray MemoryDevice Bit32MemoryError MemoryArrayMappedAddress MemoryDeviceMappedAddress BuiltInPointingDevice PortableBattery SystemReset HardwareSecurity SystemPowerControls VoltageProbe CoolingDevice TemperatureProbe ElectricalCurrentProbe OutOfBandRemoteAccess BootIntegrityServices SystemBoot Bit64MemoryError ManagementDevice ManagementDeviceComponent ManagementDeviceThresholdData MemoryChannel IPMIDevice PowerSupply AdditionalInformation OnBoardDevicesExtendedInformation ManagementControllerHostInterface /*42*/ Inactive StructureType = 126 EndOfTable StructureType = 127 )
func (StructureType) String ¶
func (b StructureType) String() string
Click to show internal directories.
Click to hide internal directories.