mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
17 lines
442 B
Go
17 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,
|
|
}
|
|
}
|