Documentation ¶
Index ¶
- func NewBuffer(call goja.ConstructorCall) interface{}
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Hex() string
- func (b *Buffer) Hexdump() string
- func (b *Buffer) Len() int
- func (b *Buffer) Pack(formatStr string, msg []interface{}) error
- func (b *Buffer) String() string
- func (b *Buffer) Write(data []byte) *Buffer
- func (b *Buffer) WriteString(data string) *Buffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuffer ¶
func NewBuffer(call goja.ConstructorCall) interface{}
NewBuffer creates a new buffer from a byte slice.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is a minimal buffer implementation over a byte slice that is used to pack/unpack binary data in nuclei js integration.
func (*Buffer) Pack ¶
Pack uses structs.Pack and packs given data and appends it to the buffer. it packs the data according to the given format.
func (*Buffer) WriteString ¶
WriteString appends a string to the buffer.
Click to show internal directories.
Click to hide internal directories.