This commit is contained in:
Kevin R
2020-08-20 04:01:58 +02:00
parent 4d4a418a95
commit 4432fb46bf
13 changed files with 420 additions and 26 deletions

23
source/log/Log.ts Normal file
View File

@@ -0,0 +1,23 @@
import CircularBuffer from '../utils/CircularBuffer'
import LogEntry from './LogEntry'
export default class Log extends CircularBuffer<LogEntry> {
public constructor(capacity: number) {
super(capacity)
}
/**
* Creates a new Log object from the given string.
*
* @param enc - the encoded log
* @returns a log object
*/
// public static from(enc: string) : Log {}
/**
* Returns this log as string.
*
* @returns the log as string
*/
// public toString() : string {}
}