This commit is contained in:
ouczb 2024-01-29 12:15:55 +08:00
parent 3917805983
commit 05ecc0551e
12 changed files with 935 additions and 12 deletions

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
.vscode/.cache/
.vscode/compile_commands.json
.obsidian/workspace.json
diary
.obsidian/plugins/
src/books/深入理解计算机系统(第三版).pdf

View File

@ -1,3 +1,4 @@
{
"accentColor": ""
"accentColor": "",
"baseFontSize": 18
}

View File

@ -5,5 +5,8 @@
"calendar",
"obsidian-image-auto-upload-plugin",
"templater-obsidian",
"periodic-notes"
"periodic-notes",
"media-extended",
"mx-bili-plugin",
"obsidian-plantuml"
]

View File

@ -1,9 +1,9 @@
{
"collapse-filter": false,
"search": "",
"showTags": true,
"showTags": false,
"showAttachments": false,
"hideUnresolved": true,
"hideUnresolved": false,
"showOrphans": false,
"collapse-color-groups": false,
"colorGroups": [],
@ -17,6 +17,6 @@
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 0.22920135941749445,
"scale": 0.8854989543150492,
"close": false
}

View File

@ -41,13 +41,10 @@
### 视图分组
- ```html
subgraph title
...
end
subgraph title
...
end
```
## 示例
```mermaid

View File

@ -4,11 +4,25 @@ tags:
creation date: 2024-01-26 17:15
modification date: 星期五 26日 一月 2024 17:15:03
---
# c++11
## final
- 阻止类继承
- 阻止虚函数重载
## explicit
- 阻止隐式转换
- 函数调用必须传递显式类型
## noexcept
#todo/cplusplus/noexcept
- 承诺函数不需要处理异常
- 如果异常,直接中止进程
# c++17
## nodiscard
编译器会检查返回值是否被忽略,支持链式传递
```cpp
#define CO_CONTEXT_AWAIT_HINT nodiscard("Did you forget to co_await?")
class [[CO_CONTEXT_AWAIT_HINT]] task {
}
class [[nodiscard]] A {};
A foo() {
return A();

10
src/english/单词.md Normal file
View File

@ -0,0 +1,10 @@
## 易错
- marry
- resemble
- mention
- enter
- resemble
- reach
- await
- discuss
- attend

9
src/english/句子.md Normal file
View File

@ -0,0 +1,9 @@
### 00.
30..
.
.

230
src/english/语法.md Normal file
View File

@ -0,0 +1,230 @@
- 谓语动词
- 描述时间、状态、人称、语气
- 时态
- 时间
- 过去
- 现在
- 将来
- 过去的将来 = 过去将来
- 过去的现在 = 过去
- 现在的将来 = 将来
- 状态
- 进行中,刚开始做
- 完成进行中,做了一半
- 完成时,做完了
- 一般,不讲动作,宽泛、只说事实、习惯,没有状态,不能具体到事
- 过去发生过的事
- 事
- 将来会发生的事
- 规则
- v
- 动词规则
- 第三人称单数/复数
- 过去式/原型
- be 动词
- 连系动词
- 助动词
- am / is / are
- was / were
- have
- have / has
- had
- ing
- 现在分词
- ed
- 过去分词
- 组合
- 现在进行中
- be + ing
- 现在完成进行时
- have + been + ing
- 现在完成时
- have + ed
- 现在一般时
- v
- 将来 借助 to / will / shall
- 一般现在时 + to可以表达将来马上的动作
- 在做了,指还没做,但马上做
- 一般时 + to省略ing
- will / would
- will + v
- will + be + ing
- will + have + been + ed
- will + have + ed
- 语气
- 陈述语气
- 陈述事实,一般时态
- 祈使语气
- 一般现在时?,省去主语你
- 祈使对方
- 虚拟语气
- 描述想象中的事情
- 想象与事实相反的事情(不可能的事)
- 与过去相反
- 与现在相反
- 与将来相反(比如将来几乎不可能发生的事发生了)
- 想象与事实相反的事情(本有可能的,所以说希望)
- 助动词和情态助动词
- be do have
- 没有实际含义
- 辅助主动词表达时态语气
- can/could will/would will/should …
- 有实际含义 能 / 将要 / 应该要…
- be able to / be going to / be about to / had better
- 半助动词,后面必须再接动词
- 能 / 将要 / 将要 / 最好/
- 系动词
- be / 感官动词 / keep / stay
- 非谓语动词
- 失去了表达时间和人称的功能,作其他词性可以简写句子
- 不定式
- 将要
- 作各种词性(除谓语)
- 动名词
- 作名词
- 现在分词
- 主动进行
- 作形容词
- 过去分词
- 被动完成
- 作形容词
- 独立主格
- 对从句的简化,省略
- 独立主格+非谓语动词

58
src/english/语法书.md Normal file
View File

@ -0,0 +1,58 @@
https://mp.weixin.qq.com/s?__biz=MzA5NzQ3NDA2Ng==&mid=2648454837&idx=4&sn=ff91bfa14200b07262c26a710a67736e&chksm=8888d5c8bfff5cde5656efee4b75be18fe7b41d6dd5afea64cb8f914539c0b32bf74fe7ae102&scene=27
## 句型
所有句型必须表述完整的语意,句型取决于动词的含义,使动词表述更清晰
### 主语 + 谓语
动词无需宾语和补语,副词修饰动词可让句意更加明确
常见的不及物动词
- 表示来、去、到达、的往来动词
- 存在动词 be 动词表示存在、有)
- 发生动词
### 主语 + 谓语 + 表语
动词后需要形容词或名词补充主语的身份、状态、情况等
副词不可以修饰名词主语,所以副词不是表语
- be 动词 & become (非存在含义)
- 感官动词 看 听 闻 尝等
- turn & seem 好像 似乎
### 主语 + 谓语 + 宾语
所有及物动词都需要宾语
动词 形容词 副词 不能作为宾语, 名词可以作为宾语
### 主语 + 谓语 + 宾语 + 宾语
- 主 + 谓 + 人 + 人
## 词法
### 主语
- 名词
- 代词
- 数词
- 名词性短语
- 不定式
- 动名词
- 从句
- 形式主语 it
- there be 句型
### 介词短语
### 修饰语
起修饰作用的词句
- 形容词修饰动词,副词修饰形容词、副词、动词和句子
- 介词短语
- 状语从句
### 表语
- 形容词
- 名词
### 状语
起补充说明的词句
- 形容词
- 名词
### 补语
- 名词
- 代词
- 形容词
### 谓语
## 词性
### 名词
### 代词
### 动词
### 形容词

495
src/english/音标.md Normal file
View File

@ -0,0 +1,495 @@
# 单元音
### [ɑ]
@tags
- 长元音
@imgs
- ![ɑ](https://res.weread.qq.com/wrepub/epub_38381477_9)
- ![ɑ](https://res.weread.qq.com/wrepub/epub_38381477_14)
@words
- car
- glass
## [ʌ]
### tags
- 短元音
### imgs
- ![ʌ](https://res.weread.qq.com/wrepub/epub_38381477_15)
- ![ʌ](https://res.weread.qq.com/wrepub/epub_38381477_20)
### words
- bus
- mother
## [ɔ:]
### tags
- 长元音
### imgs
- ![ɔ:](https://res.weread.qq.com/wrepub/epub_38381477_21)
- ![ɔ:](https://res.weread.qq.com/wrepub/epub_38381477_26)
### words
- ball
- horse
## [ɒ]
### tags
- 短元音
### imgs
- ![ɒ](https://res.weread.qq.com/wrepub/epub_38381477_27)
- ![ɒ](https://res.weread.qq.com/wrepub/epub_38381477_32)
### words
- dog
- wash
## [ɜ:]
### tags
- 长元音
### imgs
- ![ɜ:](https://res.weread.qq.com/wrepub/epub_38381477_33)
- ![ɜ:](https://res.weread.qq.com/wrepub/epub_38381477_38)
### words
- bird
- nurse
## [ə]
### tags
- 短元音
### imgs
- ![ə](https://res.weread.qq.com/wrepub/epub_38381477_39)
- ![ə](https://res.weread.qq.com/wrepub/epub_38381477_44)
### words
- tiger
- sofa
## [i]
### tags
- 长元音
### imgs
- ![i](https://res.weread.qq.com/wrepub/epub_38381477_45)
- ![i](https://res.weread.qq.com/wrepub/epub_38381477_50)
### words
- bee
- sea
## [ɪ]
### tags
- 短元音
### imgs
- ![ɪ](https://res.weread.qq.com/wrepub/epub_38381477_51)
- ![ɪ](https://res.weread.qq.com/wrepub/epub_38381477_56)
### words
- pig
- kid
## [u]
### tags
- 长元音
### imgs
- ![u](https://res.weread.qq.com/wrepub/epub_38381477_57)
- ![u](https://res.weread.qq.com/wrepub/epub_38381477_62)
### words
- school
- shoe
## [ʊ]
### tags
- 短元音
### imgs
- ![ʊ](https://res.weread.qq.com/wrepub/epub_38381477_63)
- ![ʊ](https://res.weread.qq.com/wrepub/epub_38381477_68)
### words
- book
- foot
## [æ]
### tags
- 短元音
### imgs
- ![æ](https://res.weread.qq.com/wrepub/epub_38381477_69)
- ![æ](https://res.weread.qq.com/wrepub/epub_38381477_74)
### words
- cat
- bag
## [e]
### tags
- 短元音
### imgs
- ![e](https://res.weread.qq.com/wrepub/epub_38381477_75)
- ![e](https://res.weread.qq.com/wrepub/epub_38381477_80)
### words
- bed
- head
# 双元音
## [aɪ]
### tags
- [ɪ]结尾
### imgs
- ![aɪ](https://res.weread.qq.com/wrepub/epub_38381477_95)
- ![aɪ](https://res.weread.qq.com/wrepub/epub_38381477_96)
- ![aɪ](https://res.weread.qq.com/wrepub/epub_38381477_101)
### words
- eye
- rice
## [eɪ]
### tags
- [ɪ]结尾
### imgs
- ![eɪ](https://res.weread.qq.com/wrepub/epub_38381477_102)
- ![eɪ](https://res.weread.qq.com/wrepub/epub_38381477_103)
- ![eɪ](https://res.weread.qq.com/wrepub/epub_38381477_108)
### words
- cake
- rain
## [ɔɪ]
### tags
- [ɪ]结尾
### imgs
- ![ɔɪ](https://res.weread.qq.com/wrepub/epub_38381477_109)
- ![ɔɪ](https://res.weread.qq.com/wrepub/epub_38381477_110)
- ![ɔɪ](https://res.weread.qq.com/wrepub/epub_38381477_115)
### words
- boy
- toy
## [ɪə]
### tags
- [ə]结尾
### imgs
- ![ɪə](https://res.weread.qq.com/wrepub/epub_38381477_116)
- ![ɪə](https://res.weread.qq.com/wrepub/epub_38381477_117)
- ![ɪə](https://res.weread.qq.com/wrepub/epub_38381477_122)
### words
- ear
- hear
## [eə]
### tags
- [ə]结尾
### imgs
- ![](https://res.weread.qq.com/wrepub/epub_38381477_123)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_124)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_129)
### words
- pear
- bear
## [ʊə]
### tags
- [ə]结尾
### imgs
- ![ʊə](https://res.weread.qq.com/wrepub/epub_38381477_130)
- ![ʊə](https://res.weread.qq.com/wrepub/epub_38381477_131)
- ![ʊə](https://res.weread.qq.com/wrepub/epub_38381477_136)
### words
- tour
- poor
## [aʊ]
### tags
- [ʊ]结尾
### imgs
- ![](https://res.weread.qq.com/wrepub/epub_38381477_137)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_138)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_143)
### words
- cow
- house
## [əʊ]
### tags
- [ʊ]结尾
### imgs
- ![əʊ](https://res.weread.qq.com/wrepub/epub_38381477_144)
- ![əʊ](https://res.weread.qq.com/wrepub/epub_38381477_145)
- ![əʊ](https://res.weread.qq.com/wrepub/epub_38381477_150)
### words
- coat
- snow
# 爆破音
## [p]
### tags
- 清辅音
### imgs
- ![p](https://res.weread.qq.com/wrepub/epub_38381477_160)
- ![p](https://res.weread.qq.com/wrepub/epub_38381477_165)
### words
- park
- sleep
## [b]
### tags
- 浊辅音
### imgs
- ![b](https://res.weread.qq.com/wrepub/epub_38381477_166)
- ![b](https://res.weread.qq.com/wrepub/epub_38381477_171)
### words
- baby
- rubber
## [t]
### tags
- 清辅音
### imgs
- ![t](https://res.weread.qq.com/wrepub/epub_38381477_172)
- ![t](https://res.weread.qq.com/wrepub/epub_38381477_177)
### words
- tea
- boat
## [d]
### tags
- 浊辅音
### imgs
- ![d](https://res.weread.qq.com/wrepub/epub_38381477_178)
- ![d](https://res.weread.qq.com/wrepub/epub_38381477_183)
### words
- door
- red
## [k]
### tags
- 清辅音
### imgs
- ![k](https://res.weread.qq.com/wrepub/epub_38381477_184)
- ![k](https://res.weread.qq.com/wrepub/epub_38381477_189)
### words
- cap
- milk
## [g]
### tags
- 浊辅音
### imgs
- ![g](https://res.weread.qq.com/wrepub/epub_38381477_190)
- ![g](https://res.weread.qq.com/wrepub/epub_38381477_195)
### words
- go
- egg
# 摩擦音
## [f]
### tags
- 清辅音
### imgs
- ![f](https://res.weread.qq.com/wrepub/epub_38381477_203)
- ![f](https://res.weread.qq.com/wrepub/epub_38381477_208)
### words
- fish
- phone
## [v]
### tags
- 浊辅音
### imgs
- ![v](https://res.weread.qq.com/wrepub/epub_38381477_209)
- ![v](https://res.weread.qq.com/wrepub/epub_38381477_214)
### words
- river
- five
## [s]
### tags
- 清辅音
### imgs
- ![s](https://res.weread.qq.com/wrepub/epub_38381477_215)
- ![s](https://res.weread.qq.com/wrepub/epub_38381477_220)
### words
- sun
- ice
## [z]
### tags
- 浊辅音
### imgs
- ![z](https://res.weread.qq.com/wrepub/epub_38381477_221)
- ![z](https://res.weread.qq.com/wrepub/epub_38381477_226)
### words
- zoo
- nose
## [ʃ]
### tags
- 清辅音
### imgs
- ![ʃ](https://res.weread.qq.com/wrepub/epub_38381477_227)
- ![ʃ](https://res.weread.qq.com/wrepub/epub_38381477_232)
### words
- sheep
- shirt
## [ʒ]
### tags
- 浊辅音
### imgs
- ![ʒ](https://res.weread.qq.com/wrepub/epub_38381477_233)
- ![ʒ](https://res.weread.qq.com/wrepub/epub_38381477_238)
### words
- television
- measure
## [θ]
### tags
- 清辅音
### imgs
- ![θ](https://res.weread.qq.com/wrepub/epub_38381477_239)
- ![θ](https://res.weread.qq.com/wrepub/epub_38381477_244)
### words
- tooth
- three
## [ð]
### tags
- 浊辅音
### imgs
- ![ð](https://res.weread.qq.com/wrepub/epub_38381477_245)
- ![ð](https://res.weread.qq.com/wrepub/epub_38381477_250)
### words
- they
- father
## [h]
### tags
- 清辅音
### imgs
- ![h](https://res.weread.qq.com/wrepub/epub_38381477_251)
- ![h](https://res.weread.qq.com/wrepub/epub_38381477_256)
### words
- hair
- who
## [r]
### tags
- 浊辅音
### imgs
- ![r](https://res.weread.qq.com/wrepub/epub_38381477_257)
- ![r](https://res.weread.qq.com/wrepub/epub_38381477_262)
### words
- rose
- write
# 破擦音
## [tʃ]
### tags
- 清辅音
### imgs
- ![](https://res.weread.qq.com/wrepub/epub_38381477_274)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_279)
### words
- chair
- watch
## [dʒ]
### tags
- 浊辅音
### imgs
- ![](https://res.weread.qq.com/wrepub/epub_38381477_280)
- ![](https://res.weread.qq.com/wrepub/epub_38381477_285)
### words
- jeep
- cage
## [tr]
### tags
- 清辅音
### imgs
- ![tr](https://res.weread.qq.com/wrepub/epub_38381477_286)
- ![tr](https://res.weread.qq.com/wrepub/epub_38381477_291)
### words
- tree
- train
## [dr]
### tags
- 浊辅音
### imgs
- ![dr](https://res.weread.qq.com/wrepub/epub_38381477_292)
- ![dr](https://res.weread.qq.com/wrepub/epub_38381477_297)
### words
- dress
- draw
## [ts]
### tags
- 清辅音
### imgs
- ![ts](https://res.weread.qq.com/wrepub/epub_38381477_298)
- ![ts](https://res.weread.qq.com/wrepub/epub_38381477_303)
### words
- chair
- warch
## [tz]
### tags
- 浊辅音
### imgs
- ![tz](https://res.weread.qq.com/wrepub/epub_38381477_304)
- ![tz](https://res.weread.qq.com/wrepub/epub_38381477_309)
### words
- hands
- cards
# 发鼻音
## [m]
### tags
- 浊辅音
### imgs
- ![m](https://res.weread.qq.com/wrepub/epub_38381477_317)
- ![m](https://res.weread.qq.com/wrepub/epub_38381477_322)
### words
- map
- summer
## [n]
### tags
- 浊辅音
### imgs
- ![n](https://res.weread.qq.com/wrepub/epub_38381477_323)
- ![n](https://res.weread.qq.com/wrepub/epub_38381477_328)
### words
- night
- pen
## [ŋ]
### tags
- 浊辅音
### imgs
- ![ŋ](https://res.weread.qq.com/wrepub/epub_38381477_329)
- ![ŋ](https://res.weread.qq.com/wrepub/epub_38381477_334)
### words
- bank
- sing
# 舌侧音
## [I]
### tags
- 浊辅音
### imgs
- ![I](https://res.weread.qq.com/wrepub/epub_38381477_335)
- ![I](https://res.weread.qq.com/wrepub/epub_38381477_340)
### words
- leg
- table
# 半元音
## [w]
### tags
- 浊辅音
### imgs
- ![w](https://res.weread.qq.com/wrepub/epub_38381477_342)
- ![w](https://res.weread.qq.com/wrepub/epub_38381477_347)
### words
- water
- white
## [j]
### tags
- 浊辅音
### imgs
- ![j](https://res.weread.qq.com/wrepub/epub_38381477_348)
- ![j](https://res.weread.qq.com/wrepub/epub_38381477_353)
### words
- yes
- yellow

105
src/unreal/资源管理.md Normal file
View File

@ -0,0 +1,105 @@
# LoadPackage
## 类图
```plantuml
@startuml LinkerLoad
class FArchiveState {
# SerializedProperty: FProperty*
# ArCustomPropertyList: FCustomPropertyListNode*
# CookData: FArchiveCookData*
# ArIsError: bool = false
# ArIsLoading: bool = false
# ArForceByteSwapping: bool = false
+ IsLoading():bool
+ IsError():bool
+ IsByteSwapping():bool
+ Tell():int64
+ TotalSize():int64
+ GetLinker():FLinker*
}
class FArchive{
+ Seek(int64)
+ Flush()
+ operator<<(*& Value)FArchive&
+ ByteSwap(void* V, int64 Length)
+ Serialize(void* V, int64 Length)
+ ByteOrderSerialize(void* V, int64 Length)
}
class FArchiveUObject{
+ SerializeLazyObjectPtr(FArchive& Ar, FLazyObjectPtr& Value)
+ SerializeObjectPtr(FArchive& Ar, FObjectPtr& Value)
+ SerializeSoftObjectPtr(FArchive& Ar, FSoftObjectPtr& Value)
+ SerializeSoftObjectPath(FArchive& Ar, FSoftObjectPath& Value)
+ SerializeWeakObjectPtr(FArchive& Ar, FWeakObjectPtr& Value)
}
class FLinkerTables{
+ ImportMap: TArray<FObjectImport>
+ ExportMap: TArray<FObjectExport>
+ DependsMap: TArray<TArray<FPackageIndex>>
+ SoftPackageReferenceList: TArray<FName>
+ SearchableNamesMap: TMap<FPackageIndex, TArray<FName> >
+ SerializeSearchableNamesMap(FArchive &Ar)
+ SerializeSearchableNamesMap(FStructuredArchive::FSlot Slot)
}
class FLinker {
+ LinkerType: ELinkerType::Type
+ LinkerRoot: UPackage*
+ NameMap: TArray<FNameEntryId>
+ Summary: FPackageFileSummary
+ Filename: FString
+ ScriptSHA: class FSHA1*
+ Serialize(FArchive& Ar)
}
class FLinkerLoad{
+ LoadFlags: uint32
+ bIsAsyncLoader: bool
+ LoadFlags: uint32
+ LoadFlags: uint32
+ LoadFlags: uint32
}
FArchive -|> FArchiveState
FArchiveUObject -|> FArchive
FLinkerLoad -|> FArchiveUObject
FLinkerLoad --|> FLinker
FLinker -|> FLinkerTables
@enduml
```
### class
- FLinkerLoad
- FLinker
- FLinkerTables
- FArchiveUObject
- FArchive
- FArchiveState
### func
- UObjectGlobals::LoadPackageInternal
- GetPackageLinker
- FLinkerLoad::CreateLinker
- FLinkerLoad::CreateLinkerAsync
- new FLinkerLoad
```c++
LoadPackageInternal(InOuter, PackagePath, LoadFlags, /*ImportLinker =*/ nullptr, InReaderOverride, InstancingContext, DiffPackagePath);
FLinkerLoad* GetPackageLinker
(
UPackage* InOuter,
const FPackagePath& InPackagePath,
uint32 LoadFlags,
UPackageMap* Sandbox,
FArchive* InReaderOverride,
FUObjectSerializeContext** InOutLoadContext,
FLinkerLoad* ImportLinker,
const FLinkerInstancingContext* InstancingContext
)
FLinkerLoad* Result = FLinkerLoad::CreateLinker(LoadContext, TargetPackage, PackagePath, LoadFlags, InReaderOverride, InstancingContext);
```