public override SIImage CreateImage(ITracer aTracer, Stream aStream, string aName) { SIImage ret = null; // bool isSupported = SymbianImageE32.IsImageFile(aStream); if (isSupported) { ret = new SymbianImageE32(aName, (uint)aStream.Length, aStream.Position, new SIStream(aStream), aTracer); } // return(ret); }
public static SIContent New(SIROFS aImage, string aName, uint aSize, long aPosition, TCheckedUid aUids) { SIContent ret = null; // bool isImage = SymbianImageE32.IsImageFile((Stream)aImage.Stream, aPosition); if (!isImage) { // We create either a code file (binary) or data file depending on the type of file at the specified location. ret = new SIContentROFSData(aImage, aName, aSize, aPosition, aUids); } else { ret = new SIContentROFSCode(aImage, aName, aSize, aPosition); } // return(ret); }