Exemplo n.º 1
0
    // 인터페이스 : 바이트파일 컨버터 ( 파일 하나 )
    public void ConvertByteFile(SHBaseTable pTable, string strSavePath)
    {
        if (null == pTable)
        {
            return;
        }

        byte[] pBytes = pTable.GetBytesTable();
        if (null == pBytes)
        {
            return;
        }

        SHUtils.SaveByte(pBytes, string.Format("{0}/{1}{2}", strSavePath, pTable.m_strByteFileName, ".bytes"));

        Debug.Log(string.Format("{0} To Convert Byte Files : {1}",
                                (true == pTable.IsLoadTable() ? "<color=yellow>Success</color>" : "<color=red>Fail!!</color>"),
                                pTable.m_strFileName));
    }
Exemplo n.º 2
0
    // 인터페이스 : 바이트파일 컨버터 ( 파일 하나 )
    public bool ConverterByteFile(SHBaseTable pTable, string strSavePath)
    {
        if (null == pTable)
        {
            return(false);
        }

        byte[] pBytes = pTable.GetBytesTable();
        if (null == pBytes)
        {
            return(false);
        }

        SHUtils.SaveByte(pBytes, string.Format("{0}/{1}{2}", strSavePath, pTable.GetFileName(eTableLoadType.Byte), ".bytes"));

        Debug.Log(string.Format("[LSH] {0} To Converter Byte Files : {1}",
                                (true == pTable.IsLoadTable() ? "<color=yellow>Success</color>" : "<color=red>Fail!!</color>"),
                                pTable.GetFileName(eTableLoadType.Byte)));

        return(true);
    }