mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2024-06-01 11:37:57 -04:00
18 lines
442 B
Go
18 lines
442 B
Go
|
package nex
|
||
|
|
||
|
// ByteStreamSettings defines some settings for how a ByteStream should handle certain data types
|
||
|
type ByteStreamSettings struct {
|
||
|
StringLengthSize int
|
||
|
PIDSize int
|
||
|
UseStructureHeader bool
|
||
|
}
|
||
|
|
||
|
// NewByteStreamSettings returns a new ByteStreamSettings
|
||
|
func NewByteStreamSettings() *ByteStreamSettings {
|
||
|
return &ByteStreamSettings{
|
||
|
StringLengthSize: 2,
|
||
|
PIDSize: 4,
|
||
|
UseStructureHeader: false,
|
||
|
}
|
||
|
}
|