fromByteArrayStream static method

Future<StorableString> fromByteArrayStream(
  1. ByteStream in_
)

Dummy static serializer.

Must be overridden by the respective implementing class.

@param in The input byte stream to be used @return the object parsed from the input stream by the respective class @throws IOException if not overridden or reached unexpectedly the end of stream

Implementation

static Future<StorableString> fromByteArrayStream(ByteStream in_) async {
  SerializerHelper.castTest('StorableString', serialVersionUID,
      await SerializerHelper.readLong(in_), 1);
  return StorableString(await SerializerHelper.readString(in_));
}