nbf

package
v0.0.0-...-d24fe34 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

package nbf gives access to data from Nokia NBF archives.

Index

Constants

View Source
const (
	FLAGS_SMS = 0x2000
	FLAGS_MMS = 0x1000
)

Variables

This section is empty.

Functions

func DosTime

func DosTime(stamp uint32) time.Time

Types

type Image

type Image struct {
	NBFFile string
	Type    string
	Stamp   time.Time
	Peer    string
	Data    []byte
}

type Reader

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

func OpenFile

func OpenFile(filename string) (*Reader, error)

OpenFile opens a NBF archive for reading.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Images

func (r *Reader) Images() (images []Image, err error)

func (*Reader) Inbox

func (r *Reader) Inbox() ([]SMS, error)

func (*Reader) Outbox

func (r *Reader) Outbox() ([]SMS, error)

type SMS

type SMS struct {
	Type  int // 0: incoming, 1: outgoing
	Peer  string
	Peers []string
	When  time.Time
	Text  string
}

Jump to

Keyboard shortcuts

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