Documentation ¶
Index ¶
- Variables
- func BufferExecute(sysBuffer *SystemBufferContract, input []byte) ([]byte, error)
- type SystemBufferContract
- func (this *SystemBufferContract) Address() types.Address
- func (this *SystemBufferContract) Close() error
- func (this *SystemBufferContract) Length() uint64
- func (this *SystemBufferContract) Read(offset, size uint64) ([]byte, error)
- func (this *SystemBufferContract) Write(data []byte) (uint64, error)
- type SystemBufferReadWriterCloser
Constants ¶
This section is empty.
Variables ¶
View Source
var SystemBufferAddr = cutil.HexToAddress("0000000000000000000000000000000000011111")
Functions ¶
func BufferExecute ¶
func BufferExecute(sysBuffer *SystemBufferContract, input []byte) ([]byte, error)
execute the system buffer contract
Types ¶
type SystemBufferContract ¶
type SystemBufferContract struct {
// contains filtered or unexported fields
}
SystemBufferContract used to cache the system contract data
func NewSystemBufferContract ¶
func NewSystemBufferContract(db *repository.Repository) *SystemBufferContract
NewSystemBufferContract create a SystemBufferContract instance.
func (*SystemBufferContract) Address ¶
func (this *SystemBufferContract) Address() types.Address
func (*SystemBufferContract) Close ¶
func (this *SystemBufferContract) Close() error
Length return the length of the data in buffer
func (*SystemBufferContract) Length ¶
func (this *SystemBufferContract) Length() uint64
Length return the length of the data in buffer
type SystemBufferReadWriterCloser ¶
type SystemBufferReadWriterCloser struct {
// contains filtered or unexported fields
}
func NewSystemBufferReadWriterCloser ¶
func NewSystemBufferReadWriterCloser(sysBufferContract *SystemBufferContract) *SystemBufferReadWriterCloser
NewSystemBufferReadWriterCloser create a new instance
func (*SystemBufferReadWriterCloser) Close ¶
func (this *SystemBufferReadWriterCloser) Close() error
func (*SystemBufferReadWriterCloser) ContractAddress ¶
func (this *SystemBufferReadWriterCloser) ContractAddress() types.Address
Click to show internal directories.
Click to hide internal directories.