Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Latest commit

 

History

History
29 lines (17 loc) · 918 Bytes

_object_.md

File metadata and controls

29 lines (17 loc) · 918 Bytes

ethereumjs-util"object"

Module: "object"

Index

Functions

Functions

Const defineProperties

defineProperties(self: any, fields: any, data?: any): void

Defined in object.ts:17

Defines properties on a Object. It make the assumption that underlying data is binary.

Parameters:

Name Type Description
self any the Object to define properties on
fields any an array fields to define. Fields can contain: * name - the name of the properties * length - the number of bytes the field can have * allowLess - if the field can be less than the length * allowEmpty
data? any data to be validated against the definitions

Returns: void