final case class BufferedEntry[+A <: DbpfType](tgi: Tgi, content: A, compressed: Boolean) extends DbpfEntry with Product with Serializable
A buffered entry whose data is held in memory in uncompressed form.
The actual data will be held by the content
type. As such, this entry
will be immutable, if its content
is immutable.
- A
the type of the content
- tgi
the TGI of this entry
- content
the actual content of this entry
- compressed
true
, if the input should try to return the data in compressed form. If compression fails (if the compressed data would be larger than the compressed one, for instance), the data may be uncompressed nevertheless.
- Source
- entries.scala
- See also
- Alphabetic
- By Inheritance
- BufferedEntry
- Serializable
- Serializable
- Product
- Equals
- DbpfEntry
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BufferedEntry(tgi: Tgi, content: A, compressed: Boolean)
- tgi
the TGI of this entry
- content
the actual content of this entry
- compressed
true
, if the input should try to return the data in compressed form. If compression fails (if the compressed data would be larger than the compressed one, for instance), the data may be uncompressed nevertheless.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val compressed: Boolean
- val content: A
-
def
convert[B <: DbpfType](implicit eh: ExceptionHandler, conv: Converter[BufferedEntry[A], BufferedEntry[B]]): ![BufferedEntry[B], DbpfDecodeFailedException]
Deprecated: Prefer
convertContentTo
instead.Deprecated: Prefer
convertContentTo
instead.Creates a new
BufferedEntry
, with this entry'scontent
converted toB
. Usually this delegates to theconvert
method ofcontent
, but in some cases this is not possible, like for Exemplar, which requires thetgi
for conversion. -
def
convertContentTo[B <: DbpfType](dbpfType: WithContentConverter[B])(implicit eh: ExceptionHandler): ![BufferedEntry[B], DbpfDecodeFailedException]
Creates a new
BufferedEntry
, with this entry'scontent
converted toB
.Creates a new
BufferedEntry
, with this entry'scontent
converted toB
. Usually this delegates to theconvert
method ofcontent
, but in some cases this is not possible, like for Exemplar, which requires thetgi
for conversion. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
input(): Input[Byte]
the byte input that provides the raw byte data that gets written to DBPF files
the byte input that provides the raw byte data that gets written to DBPF files
It is tried to respect the
compressed
flag, as long as this reduces the data size.- Definition Classes
- BufferedEntry → DbpfEntry
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B <: DbpfType](f: (A) ⇒ B): BufferedEntry[B]
Maps the
content
of this buffered entry and returns a newBufferedEntry
with thecontent
replaced by the image of the map. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tgi: Tgi
the TGI of this entry
the TGI of this entry
- Definition Classes
- BufferedEntry → DbpfEntry
-
def
toBufferedEntry(implicit eh: ExceptionHandler): ![BufferedEntry[DbpfType], DbpfIoException]
Converts this entry to a
BufferedEntry
.Converts this entry to a
BufferedEntry
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- Definition Classes
- BufferedEntry → DbpfEntry
-
def
toRawEntry(implicit eh: ExceptionHandler): ![RawEntry, DbpfIoException]
Converts this entry to a
RawEntry
.Converts this entry to a
RawEntry
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- Definition Classes
- BufferedEntry → DbpfEntry
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()