msgpool

package
v0.0.0-...-c8c792b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package msgpool provides a pool of SMB messages that can be reused.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool is a pool of SMB messages that can be reused. It must be created with NewPool.

func New

func New() *Pool

New returns an SMB message pool that is ready for use.

func (*Pool) Get

func (p *Pool) Get(length int) smb.Message

Get returns a message of appropriate length from the pool with its bytes initialized to zero. The message must be closed when the caller is finished with it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL